From 8e7521e7d8891968f2404d36f04d359ca53c8e85 Mon Sep 17 00:00:00 2001 From: Edvaldo Martins Date: Mon, 26 Jun 2023 14:58:26 +0100 Subject: [PATCH] update dependencies and fix dio references --- .flutter-plugins | 31 +- .flutter-plugins-dependencies | 2 +- .../application/core/base_view_model.g.dart | 9 +- .../packages/detail_package_view_model.g.dart | 54 +- .../packages/packages_view_model.g.dart | 15 +- .../search/search_view_model.g.dart | 15 +- .../settings/config_view_model.g.dart | 27 +- .../domain/core/request_failure.freezed.dart | 182 ++- .../infrastructure/core/network_builder.dart | 2 +- .../packages/base_package_repository.dart | 8 +- .../search/base_search_repository.dart | 2 +- pubspec.lock | 244 ++-- pubspec.yaml | 6 +- test/src/infrastructure/mocks.mocks.dart | 1248 ++++++++++++----- 14 files changed, 1191 insertions(+), 654 deletions(-) diff --git a/.flutter-plugins b/.flutter-plugins index 8fef273..c84fae9 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,19 +1,18 @@ # This is a generated file; do not edit or check into version control. integration_test=/Users/edvaldo/flutter/packages/integration_test/ -path_provider_linux=/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.5/ -path_provider_windows=/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_windows-2.0.5/ +path_provider_linux=/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.11/ +path_provider_windows=/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/ share=/Users/edvaldo/.pub-cache/hosted/pub.dev/share-2.0.4/ -shared_preferences=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences-2.0.13/ -shared_preferences_android=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.11/ -shared_preferences_ios=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_ios-2.1.0/ -shared_preferences_linux=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.1.0/ -shared_preferences_macos=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_macos-2.0.3/ -shared_preferences_web=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.3/ -shared_preferences_windows=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.1.0/ -url_launcher=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher-6.0.20/ -url_launcher_android=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.15/ -url_launcher_ios=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_ios-6.0.15/ -url_launcher_linux=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.0/ -url_launcher_macos=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.0/ -url_launcher_web=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.9/ -url_launcher_windows=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.0/ +shared_preferences=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences-2.1.2/ +shared_preferences_android=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_android-2.1.4/ +shared_preferences_foundation=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.2/ +shared_preferences_linux=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/ +shared_preferences_web=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_web-2.1.0/ +shared_preferences_windows=/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.2.0/ +url_launcher=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher-6.1.11/ +url_launcher_android=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.36/ +url_launcher_ios=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_ios-6.1.4/ +url_launcher_linux=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.5/ +url_launcher_macos=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.5/ +url_launcher_web=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.17/ +url_launcher_windows=/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.6/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index a540fbf..9d20d9b 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"/Users/edvaldo/flutter/packages/integration_test/","native_build":true,"dependencies":[]},{"name":"share","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/share-2.0.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_ios","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_ios-2.1.0/","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_ios-6.0.15/","native_build":true,"dependencies":[]}],"android":[{"name":"integration_test","path":"/Users/edvaldo/flutter/packages/integration_test/","native_build":true,"dependencies":[]},{"name":"share","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/share-2.0.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.11/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.15/","native_build":true,"dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_macos-2.0.3/","native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.5/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.1.0/","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.0/","native_build":true,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_windows-2.0.5/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.1.0/","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.0/","native_build":true,"dependencies":[]}],"web":[{"name":"shared_preferences_web","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.3/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.9/","dependencies":[]}]},"dependencyGraph":[{"name":"integration_test","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"share","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_ios","shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_ios","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2023-06-26 14:33:55.542569","version":"3.10.5"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"/Users/edvaldo/flutter/packages/integration_test/","native_build":true,"dependencies":[]},{"name":"share","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/share-2.0.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_ios-6.1.4/","native_build":true,"dependencies":[]}],"android":[{"name":"integration_test","path":"/Users/edvaldo/flutter/packages/integration_test/","native_build":true,"dependencies":[]},{"name":"share","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/share-2.0.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_android-2.1.4/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.36/","native_build":true,"dependencies":[]}],"macos":[{"name":"shared_preferences_foundation","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.5/","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.11/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.5/","native_build":true,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.2.0/","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.6/","native_build":true,"dependencies":[]}],"web":[{"name":"shared_preferences_web","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/shared_preferences_web-2.1.0/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/edvaldo/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.17/","dependencies":[]}]},"dependencyGraph":[{"name":"integration_test","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"share","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2023-06-26 14:55:14.210432","version":"3.10.5"} \ No newline at end of file diff --git a/lib/src/application/core/base_view_model.g.dart b/lib/src/application/core/base_view_model.g.dart index f1e155f..1725870 100644 --- a/lib/src/application/core/base_view_model.g.dart +++ b/lib/src/application/core/base_view_model.g.dart @@ -6,7 +6,7 @@ part of 'base_view_model.dart'; // StoreGenerator // ************************************************************************** -// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic +// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers mixin _$BaseViewModel on _BaseViewModel, Store { Computed? _$isBusyComputed; @@ -16,7 +16,8 @@ mixin _$BaseViewModel on _BaseViewModel, Store { Computed(() => super.isBusy, name: '_BaseViewModel.isBusy')) .value; - final _$_isBusyAtom = Atom(name: '_BaseViewModel._isBusy'); + late final _$_isBusyAtom = + Atom(name: '_BaseViewModel._isBusy', context: context); @override bool get _isBusy { @@ -31,8 +32,8 @@ mixin _$BaseViewModel on _BaseViewModel, Store { }); } - final _$_BaseViewModelActionController = - ActionController(name: '_BaseViewModel'); + late final _$_BaseViewModelActionController = + ActionController(name: '_BaseViewModel', context: context); @override void setBusy(bool state) { diff --git a/lib/src/application/packages/detail_package_view_model.g.dart b/lib/src/application/packages/detail_package_view_model.g.dart index 5717832..923a10d 100644 --- a/lib/src/application/packages/detail_package_view_model.g.dart +++ b/lib/src/application/packages/detail_package_view_model.g.dart @@ -6,7 +6,7 @@ part of 'detail_package_view_model.dart'; // StoreGenerator // ************************************************************************** -// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic +// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { Computed? _$hasErrorComputed; @@ -120,7 +120,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { name: '_DetailPackageViewModel.loadingChangelog')) .value; - final _$_packageAtom = Atom(name: '_DetailPackageViewModel._package'); + late final _$_packageAtom = + Atom(name: '_DetailPackageViewModel._package', context: context); @override Package? get _package { @@ -135,7 +136,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_versionAtom = Atom(name: '_DetailPackageViewModel._version'); + late final _$_versionAtom = + Atom(name: '_DetailPackageViewModel._version', context: context); @override Version? get _version { @@ -150,7 +152,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_metricAtom = Atom(name: '_DetailPackageViewModel._metric'); + late final _$_metricAtom = + Atom(name: '_DetailPackageViewModel._metric', context: context); @override Metric get _metric { @@ -165,7 +168,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_readmeAtom = Atom(name: '_DetailPackageViewModel._readme'); + late final _$_readmeAtom = + Atom(name: '_DetailPackageViewModel._readme', context: context); @override String get _readme { @@ -180,7 +184,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_publisherAtom = Atom(name: '_DetailPackageViewModel._publisher'); + late final _$_publisherAtom = + Atom(name: '_DetailPackageViewModel._publisher', context: context); @override String get _publisher { @@ -195,7 +200,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_changelogAtom = Atom(name: '_DetailPackageViewModel._changelog'); + late final _$_changelogAtom = + Atom(name: '_DetailPackageViewModel._changelog', context: context); @override String get _changelog { @@ -210,8 +216,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_loadingReadmeAtom = - Atom(name: '_DetailPackageViewModel._loadingReadme'); + late final _$_loadingReadmeAtom = + Atom(name: '_DetailPackageViewModel._loadingReadme', context: context); @override bool get _loadingReadme { @@ -226,8 +232,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$_loadingChangelogAtom = - Atom(name: '_DetailPackageViewModel._loadingChangelog'); + late final _$_loadingChangelogAtom = + Atom(name: '_DetailPackageViewModel._loadingChangelog', context: context); @override bool get _loadingChangelog { @@ -242,7 +248,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$failureAtom = Atom(name: '_DetailPackageViewModel.failure'); + late final _$failureAtom = + Atom(name: '_DetailPackageViewModel.failure', context: context); @override RequestFailure? get failure { @@ -257,7 +264,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { }); } - final _$loadAsyncAction = AsyncAction('_DetailPackageViewModel.load'); + late final _$loadAsyncAction = + AsyncAction('_DetailPackageViewModel.load', context: context); @override Future load(String packageName, {bool refresh = false}) { @@ -265,8 +273,8 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { .run(() => super.load(packageName, refresh: refresh)); } - final _$loadPublisherAsyncAction = - AsyncAction('_DetailPackageViewModel.loadPublisher'); + late final _$loadPublisherAsyncAction = + AsyncAction('_DetailPackageViewModel.loadPublisher', context: context); @override Future loadPublisher(String namePackage) { @@ -274,32 +282,32 @@ mixin _$DetailPackageViewModel on _DetailPackageViewModel, Store { .run(() => super.loadPublisher(namePackage)); } - final _$loadReadmeAsyncAction = - AsyncAction('_DetailPackageViewModel.loadReadme'); + late final _$loadReadmeAsyncAction = + AsyncAction('_DetailPackageViewModel.loadReadme', context: context); @override Future loadReadme() { return _$loadReadmeAsyncAction.run(() => super.loadReadme()); } - final _$loadChangelogAsyncAction = - AsyncAction('_DetailPackageViewModel.loadChangelog'); + late final _$loadChangelogAsyncAction = + AsyncAction('_DetailPackageViewModel.loadChangelog', context: context); @override Future loadChangelog() { return _$loadChangelogAsyncAction.run(() => super.loadChangelog()); } - final _$loadScoreAsyncAction = - AsyncAction('_DetailPackageViewModel.loadScore'); + late final _$loadScoreAsyncAction = + AsyncAction('_DetailPackageViewModel.loadScore', context: context); @override Future loadScore() { return _$loadScoreAsyncAction.run(() => super.loadScore()); } - final _$_DetailPackageViewModelActionController = - ActionController(name: '_DetailPackageViewModel'); + late final _$_DetailPackageViewModelActionController = + ActionController(name: '_DetailPackageViewModel', context: context); @override void setPackage(Package package) { diff --git a/lib/src/application/packages/packages_view_model.g.dart b/lib/src/application/packages/packages_view_model.g.dart index b0079f8..385abd5 100644 --- a/lib/src/application/packages/packages_view_model.g.dart +++ b/lib/src/application/packages/packages_view_model.g.dart @@ -6,7 +6,7 @@ part of 'packages_view_model.dart'; // StoreGenerator // ************************************************************************** -// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic +// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers mixin _$PackagesViewModel on _PackagesViewModel, Store { Computed? _$hasErrorComputed; @@ -37,7 +37,8 @@ mixin _$PackagesViewModel on _PackagesViewModel, Store { name: '_PackagesViewModel.hasData')) .value; - final _$_packagesAtom = Atom(name: '_PackagesViewModel._packages'); + late final _$_packagesAtom = + Atom(name: '_PackagesViewModel._packages', context: context); @override ObservableList get _packages { @@ -52,7 +53,8 @@ mixin _$PackagesViewModel on _PackagesViewModel, Store { }); } - final _$_failureAtom = Atom(name: '_PackagesViewModel._failure'); + late final _$_failureAtom = + Atom(name: '_PackagesViewModel._failure', context: context); @override RequestFailure? get _failure { @@ -67,15 +69,16 @@ mixin _$PackagesViewModel on _PackagesViewModel, Store { }); } - final _$loadAsyncAction = AsyncAction('_PackagesViewModel.load'); + late final _$loadAsyncAction = + AsyncAction('_PackagesViewModel.load', context: context); @override Future load({bool refresh = false}) { return _$loadAsyncAction.run(() => super.load(refresh: refresh)); } - final _$_PackagesViewModelActionController = - ActionController(name: '_PackagesViewModel'); + late final _$_PackagesViewModelActionController = + ActionController(name: '_PackagesViewModel', context: context); @override void _setData(List list, bool refresh) { diff --git a/lib/src/application/search/search_view_model.g.dart b/lib/src/application/search/search_view_model.g.dart index 362117d..407a1de 100644 --- a/lib/src/application/search/search_view_model.g.dart +++ b/lib/src/application/search/search_view_model.g.dart @@ -6,7 +6,7 @@ part of 'search_view_model.dart'; // StoreGenerator // ************************************************************************** -// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic +// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers mixin _$SearchViewModel on _SearchViewModel, Store { Computed? _$hasErrorComputed; @@ -30,7 +30,8 @@ mixin _$SearchViewModel on _SearchViewModel, Store { Computed(() => super.hasData, name: '_SearchViewModel.hasData')) .value; - final _$_resultsAtom = Atom(name: '_SearchViewModel._results'); + late final _$_resultsAtom = + Atom(name: '_SearchViewModel._results', context: context); @override ObservableList get _results { @@ -45,7 +46,8 @@ mixin _$SearchViewModel on _SearchViewModel, Store { }); } - final _$failureAtom = Atom(name: '_SearchViewModel.failure'); + late final _$failureAtom = + Atom(name: '_SearchViewModel.failure', context: context); @override RequestFailure? get failure { @@ -60,7 +62,8 @@ mixin _$SearchViewModel on _SearchViewModel, Store { }); } - final _$loadAsyncAction = AsyncAction('_SearchViewModel.load'); + late final _$loadAsyncAction = + AsyncAction('_SearchViewModel.load', context: context); @override Future load({required String query, bool refresh = false}) { @@ -68,8 +71,8 @@ mixin _$SearchViewModel on _SearchViewModel, Store { .run(() => super.load(query: query, refresh: refresh)); } - final _$_SearchViewModelActionController = - ActionController(name: '_SearchViewModel'); + late final _$_SearchViewModelActionController = + ActionController(name: '_SearchViewModel', context: context); @override void setData(List list, bool refresh) { diff --git a/lib/src/application/settings/config_view_model.g.dart b/lib/src/application/settings/config_view_model.g.dart index 2aa0b05..b873a0b 100644 --- a/lib/src/application/settings/config_view_model.g.dart +++ b/lib/src/application/settings/config_view_model.g.dart @@ -6,7 +6,7 @@ part of 'config_view_model.dart'; // StoreGenerator // ************************************************************************** -// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic +// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers mixin _$ConfigViewModel on _ConfigViewModel, Store { Computed? _$localeComputed; @@ -30,8 +30,8 @@ mixin _$ConfigViewModel on _ConfigViewModel, Store { name: '_ConfigViewModel.darkModeIsEnable')) .value; - final _$_darkModeIsEnableAtom = - Atom(name: '_ConfigViewModel._darkModeIsEnable'); + late final _$_darkModeIsEnableAtom = + Atom(name: '_ConfigViewModel._darkModeIsEnable', context: context); @override bool get _darkModeIsEnable { @@ -46,7 +46,8 @@ mixin _$ConfigViewModel on _ConfigViewModel, Store { }); } - final _$_themeDataAtom = Atom(name: '_ConfigViewModel._themeData'); + late final _$_themeDataAtom = + Atom(name: '_ConfigViewModel._themeData', context: context); @override ThemeData? get _themeData { @@ -61,7 +62,8 @@ mixin _$ConfigViewModel on _ConfigViewModel, Store { }); } - final _$_localeAtom = Atom(name: '_ConfigViewModel._locale'); + late final _$_localeAtom = + Atom(name: '_ConfigViewModel._locale', context: context); @override Locale? get _locale { @@ -76,15 +78,16 @@ mixin _$ConfigViewModel on _ConfigViewModel, Store { }); } - final _$initializeAsyncAction = AsyncAction('_ConfigViewModel.initialize'); + late final _$initializeAsyncAction = + AsyncAction('_ConfigViewModel.initialize', context: context); @override Future initialize() { return _$initializeAsyncAction.run(() => super.initialize()); } - final _$changeTranslateAsyncAction = - AsyncAction('_ConfigViewModel.changeTranslate'); + late final _$changeTranslateAsyncAction = + AsyncAction('_ConfigViewModel.changeTranslate', context: context); @override Future changeTranslate({required String languageCode}) { @@ -92,16 +95,16 @@ mixin _$ConfigViewModel on _ConfigViewModel, Store { .run(() => super.changeTranslate(languageCode: languageCode)); } - final _$enableDarkModeAsyncAction = - AsyncAction('_ConfigViewModel.enableDarkMode'); + late final _$enableDarkModeAsyncAction = + AsyncAction('_ConfigViewModel.enableDarkMode', context: context); @override Future enableDarkMode() { return _$enableDarkModeAsyncAction.run(() => super.enableDarkMode()); } - final _$disableDarkModeAsyncAction = - AsyncAction('_ConfigViewModel.disableDarkMode'); + late final _$disableDarkModeAsyncAction = + AsyncAction('_ConfigViewModel.disableDarkMode', context: context); @override Future disableDarkMode() { diff --git a/lib/src/domain/core/request_failure.freezed.dart b/lib/src/domain/core/request_failure.freezed.dart index 66a6586..0b8008d 100644 --- a/lib/src/domain/core/request_failure.freezed.dart +++ b/lib/src/domain/core/request_failure.freezed.dart @@ -1,5 +1,7 @@ +// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark part of 'request_failure.dart'; @@ -10,27 +12,7 @@ part of 'request_failure.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -/// @nodoc -class _$RequestFailureTearOff { - const _$RequestFailureTearOff(); - - _NetworkFailure networkError() { - return _NetworkFailure(); - } - - _Empty empty() { - return _Empty(); - } - - _ServerError serverError() { - return _ServerError(); - } -} - -/// @nodoc -const $RequestFailure = _$RequestFailureTearOff(); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); /// @nodoc mixin _$RequestFailure { @@ -42,6 +24,13 @@ mixin _$RequestFailure { }) => throw _privateConstructorUsedError; @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? networkError, + TResult? Function()? empty, + TResult? Function()? serverError, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs TResult maybeWhen({ TResult Function()? networkError, TResult Function()? empty, @@ -57,6 +46,13 @@ mixin _$RequestFailure { }) => throw _privateConstructorUsedError; @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(_NetworkFailure value)? networkError, + TResult? Function(_Empty value)? empty, + TResult? Function(_ServerError value)? serverError, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs TResult maybeMap({ TResult Function(_NetworkFailure value)? networkError, TResult Function(_Empty value)? empty, @@ -70,36 +66,34 @@ mixin _$RequestFailure { abstract class $RequestFailureCopyWith<$Res> { factory $RequestFailureCopyWith( RequestFailure value, $Res Function(RequestFailure) then) = - _$RequestFailureCopyWithImpl<$Res>; + _$RequestFailureCopyWithImpl<$Res, RequestFailure>; } /// @nodoc -class _$RequestFailureCopyWithImpl<$Res> +class _$RequestFailureCopyWithImpl<$Res, $Val extends RequestFailure> implements $RequestFailureCopyWith<$Res> { _$RequestFailureCopyWithImpl(this._value, this._then); - final RequestFailure _value; // ignore: unused_field - final $Res Function(RequestFailure) _then; + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; } /// @nodoc -abstract class _$NetworkFailureCopyWith<$Res> { - factory _$NetworkFailureCopyWith( - _NetworkFailure value, $Res Function(_NetworkFailure) then) = - __$NetworkFailureCopyWithImpl<$Res>; +abstract class _$$_NetworkFailureCopyWith<$Res> { + factory _$$_NetworkFailureCopyWith( + _$_NetworkFailure value, $Res Function(_$_NetworkFailure) then) = + __$$_NetworkFailureCopyWithImpl<$Res>; } /// @nodoc -class __$NetworkFailureCopyWithImpl<$Res> - extends _$RequestFailureCopyWithImpl<$Res> - implements _$NetworkFailureCopyWith<$Res> { - __$NetworkFailureCopyWithImpl( - _NetworkFailure _value, $Res Function(_NetworkFailure) _then) - : super(_value, (v) => _then(v as _NetworkFailure)); - - @override - _NetworkFailure get _value => super._value as _NetworkFailure; +class __$$_NetworkFailureCopyWithImpl<$Res> + extends _$RequestFailureCopyWithImpl<$Res, _$_NetworkFailure> + implements _$$_NetworkFailureCopyWith<$Res> { + __$$_NetworkFailureCopyWithImpl( + _$_NetworkFailure _value, $Res Function(_$_NetworkFailure) _then) + : super(_value, _then); } /// @nodoc @@ -114,7 +108,8 @@ class _$_NetworkFailure implements _NetworkFailure { @override bool operator ==(dynamic other) { - return identical(this, other) || (other is _NetworkFailure); + return identical(this, other) || + (other.runtimeType == runtimeType && other is _$_NetworkFailure); } @override @@ -130,6 +125,16 @@ class _$_NetworkFailure implements _NetworkFailure { return networkError(); } + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? networkError, + TResult? Function()? empty, + TResult? Function()? serverError, + }) { + return networkError?.call(); + } + @override @optionalTypeArgs TResult maybeWhen({ @@ -154,6 +159,16 @@ class _$_NetworkFailure implements _NetworkFailure { return networkError(this); } + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(_NetworkFailure value)? networkError, + TResult? Function(_Empty value)? empty, + TResult? Function(_ServerError value)? serverError, + }) { + return networkError?.call(this); + } + @override @optionalTypeArgs TResult maybeMap({ @@ -174,19 +189,17 @@ abstract class _NetworkFailure implements RequestFailure { } /// @nodoc -abstract class _$EmptyCopyWith<$Res> { - factory _$EmptyCopyWith(_Empty value, $Res Function(_Empty) then) = - __$EmptyCopyWithImpl<$Res>; +abstract class _$$_EmptyCopyWith<$Res> { + factory _$$_EmptyCopyWith(_$_Empty value, $Res Function(_$_Empty) then) = + __$$_EmptyCopyWithImpl<$Res>; } /// @nodoc -class __$EmptyCopyWithImpl<$Res> extends _$RequestFailureCopyWithImpl<$Res> - implements _$EmptyCopyWith<$Res> { - __$EmptyCopyWithImpl(_Empty _value, $Res Function(_Empty) _then) - : super(_value, (v) => _then(v as _Empty)); - - @override - _Empty get _value => super._value as _Empty; +class __$$_EmptyCopyWithImpl<$Res> + extends _$RequestFailureCopyWithImpl<$Res, _$_Empty> + implements _$$_EmptyCopyWith<$Res> { + __$$_EmptyCopyWithImpl(_$_Empty _value, $Res Function(_$_Empty) _then) + : super(_value, _then); } /// @nodoc @@ -201,7 +214,8 @@ class _$_Empty implements _Empty { @override bool operator ==(dynamic other) { - return identical(this, other) || (other is _Empty); + return identical(this, other) || + (other.runtimeType == runtimeType && other is _$_Empty); } @override @@ -217,6 +231,16 @@ class _$_Empty implements _Empty { return empty(); } + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? networkError, + TResult? Function()? empty, + TResult? Function()? serverError, + }) { + return empty?.call(); + } + @override @optionalTypeArgs TResult maybeWhen({ @@ -241,6 +265,16 @@ class _$_Empty implements _Empty { return empty(this); } + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(_NetworkFailure value)? networkError, + TResult? Function(_Empty value)? empty, + TResult? Function(_ServerError value)? serverError, + }) { + return empty?.call(this); + } + @override @optionalTypeArgs TResult maybeMap({ @@ -261,22 +295,19 @@ abstract class _Empty implements RequestFailure { } /// @nodoc -abstract class _$ServerErrorCopyWith<$Res> { - factory _$ServerErrorCopyWith( - _ServerError value, $Res Function(_ServerError) then) = - __$ServerErrorCopyWithImpl<$Res>; +abstract class _$$_ServerErrorCopyWith<$Res> { + factory _$$_ServerErrorCopyWith( + _$_ServerError value, $Res Function(_$_ServerError) then) = + __$$_ServerErrorCopyWithImpl<$Res>; } /// @nodoc -class __$ServerErrorCopyWithImpl<$Res> - extends _$RequestFailureCopyWithImpl<$Res> - implements _$ServerErrorCopyWith<$Res> { - __$ServerErrorCopyWithImpl( - _ServerError _value, $Res Function(_ServerError) _then) - : super(_value, (v) => _then(v as _ServerError)); - - @override - _ServerError get _value => super._value as _ServerError; +class __$$_ServerErrorCopyWithImpl<$Res> + extends _$RequestFailureCopyWithImpl<$Res, _$_ServerError> + implements _$$_ServerErrorCopyWith<$Res> { + __$$_ServerErrorCopyWithImpl( + _$_ServerError _value, $Res Function(_$_ServerError) _then) + : super(_value, _then); } /// @nodoc @@ -291,7 +322,8 @@ class _$_ServerError implements _ServerError { @override bool operator ==(dynamic other) { - return identical(this, other) || (other is _ServerError); + return identical(this, other) || + (other.runtimeType == runtimeType && other is _$_ServerError); } @override @@ -307,6 +339,16 @@ class _$_ServerError implements _ServerError { return serverError(); } + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? networkError, + TResult? Function()? empty, + TResult? Function()? serverError, + }) { + return serverError?.call(); + } + @override @optionalTypeArgs TResult maybeWhen({ @@ -331,6 +373,16 @@ class _$_ServerError implements _ServerError { return serverError(this); } + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(_NetworkFailure value)? networkError, + TResult? Function(_Empty value)? empty, + TResult? Function(_ServerError value)? serverError, + }) { + return serverError?.call(this); + } + @override @optionalTypeArgs TResult maybeMap({ diff --git a/lib/src/infrastructure/core/network_builder.dart b/lib/src/infrastructure/core/network_builder.dart index 70816a2..d0fe28e 100644 --- a/lib/src/infrastructure/core/network_builder.dart +++ b/lib/src/infrastructure/core/network_builder.dart @@ -1,5 +1,5 @@ -import 'package:dio/adapter.dart'; import 'package:dio/dio.dart'; +import 'package:dio/io.dart'; const String host = 'pub.dartlang.org'; const String apiBaseUrl = 'https://$host/api'; diff --git a/lib/src/infrastructure/packages/base_package_repository.dart b/lib/src/infrastructure/packages/base_package_repository.dart index 8e50bec..000fa8a 100644 --- a/lib/src/infrastructure/packages/base_package_repository.dart +++ b/lib/src/infrastructure/packages/base_package_repository.dart @@ -37,7 +37,7 @@ class BasePackageRepository extends IPackageRepository { return left(RequestFailure.networkError()); } - if (e.type == DioErrorType.connectTimeout || + if (e.type == DioErrorType.connectionTimeout || e.type == DioErrorType.receiveTimeout || e.type == DioErrorType.sendTimeout) { return left(RequestFailure.serverError()); @@ -74,7 +74,7 @@ class BasePackageRepository extends IPackageRepository { return left(RequestFailure.networkError()); } - if (e.type == DioErrorType.connectTimeout || + if (e.type == DioErrorType.connectionTimeout || e.type == DioErrorType.receiveTimeout || e.type == DioErrorType.sendTimeout) { return left(RequestFailure.serverError()); @@ -112,7 +112,7 @@ class BasePackageRepository extends IPackageRepository { return left(RequestFailure.networkError()); } - if (e.type == DioErrorType.connectTimeout || + if (e.type == DioErrorType.connectionTimeout || e.type == DioErrorType.receiveTimeout || e.type == DioErrorType.sendTimeout) { return left(RequestFailure.serverError()); @@ -149,7 +149,7 @@ class BasePackageRepository extends IPackageRepository { return left(RequestFailure.networkError()); } - if (e.type == DioErrorType.connectTimeout || + if (e.type == DioErrorType.connectionTimeout || e.type == DioErrorType.receiveTimeout || e.type == DioErrorType.sendTimeout) { return left(RequestFailure.serverError()); diff --git a/lib/src/infrastructure/search/base_search_repository.dart b/lib/src/infrastructure/search/base_search_repository.dart index 7ee986e..4705ba5 100644 --- a/lib/src/infrastructure/search/base_search_repository.dart +++ b/lib/src/infrastructure/search/base_search_repository.dart @@ -36,7 +36,7 @@ class BaseSearchRepository extends ISearchRepository { return left(RequestFailure.networkError()); } - if (e.type == DioErrorType.connectTimeout || + if (e.type == DioErrorType.connectionTimeout || e.type == DioErrorType.receiveTimeout || e.type == DioErrorType.sendTimeout) { return left(RequestFailure.serverError()); diff --git a/pubspec.lock b/pubspec.lock index 904736e..11b92f7 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: args - sha256: "0bd9a99b6eb96f07af141f0eb53eace8983e8e5aa5de59777aca31684680ef22" + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.2" async: dependency: transitive description: @@ -45,10 +45,10 @@ packages: dependency: transitive description: name: build - sha256: "3fbda25365741f8251b39f3917fb3c8e286a96fd068a5a242e11c2012d495777" + sha256: "43865b79fbb78532e4bff7c33087aa43b1d488c4fdef014eaef568af6d8016dc" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.0" build_config: dependency: transitive description: @@ -77,18 +77,18 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "24e160312abfad4deb457a1915ce048ba39e718eef70e373a576d0c7ff5e6339" + sha256: "5e1929ad37d48bd382b124266cb8e521de5548d406a45a5ae6656c13dab73e37" url: "https://pub.dev" source: hosted - version: "2.4.3" + version: "2.4.5" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "0db1b64c84fa803603fa406f8721959036e898cc9575d6ce4a3067581b9276c0" + sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" url: "https://pub.dev" source: hosted - version: "7.2.2" + version: "7.2.10" built_collection: dependency: transitive description: @@ -101,10 +101,10 @@ packages: dependency: transitive description: name: built_value - sha256: b6c9911b2d670376918d5b8779bc27e0e612a94ec3ff0343689e991d8d0a3b8a + sha256: "598a2a682e2a7a90f08ba39c0aaa9374c5112340f0a2e275f61b59389543d166" url: "https://pub.dev" source: hosted - version: "8.1.4" + version: "8.6.1" characters: dependency: transitive description: @@ -113,22 +113,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" - charcode: - dependency: transitive - description: - name: charcode - sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306 - url: "https://pub.dev" - source: hosted - version: "1.3.1" checked_yaml: dependency: transitive description: name: checked_yaml - sha256: dd007e4fb8270916820a0d66e24f619266b60773cddd082c6439341645af2659 + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.3" clock: dependency: transitive description: @@ -157,18 +149,18 @@ packages: dependency: transitive description: name: convert - sha256: f08428ad63615f96a27e34221c65e1a451439b5f26030f78d790f461c686d65d + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.1.1" crypto: dependency: transitive description: name: crypto - sha256: cf75650c66c0316274e21d7c43d3dea246273af5955bd94e8184837cd577575c + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.3" csslib: dependency: transitive description: @@ -205,18 +197,18 @@ packages: dependency: "direct main" description: name: dio - sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8" + sha256: a9d76e72985d7087eb7c5e7903224ae52b337131518d127c554b9405936752b8 url: "https://pub.dev" source: hosted - version: "4.0.6" + version: "5.2.1+1" equatable: dependency: "direct main" description: name: equatable - sha256: c6094fd1efad3046334a9c40bee022147e55c25401ccd89b94e373e3edadd375 + sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2 url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "2.0.5" fake_async: dependency: transitive description: @@ -229,10 +221,10 @@ packages: dependency: transitive description: name: ffi - sha256: "35d0f481d939de0d640b3db9a7aa36a52cd22054a798a73b4f50bdad5ce12678" + sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99 url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "2.0.2" file: dependency: transitive description: @@ -245,10 +237,10 @@ packages: dependency: transitive description: name: fixnum - sha256: "6a2ef17156f4dc49684f9d99aaf4a93aba8ac49f5eac861755f5730ddf6e2e4e" + sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.1.0" flutter: dependency: "direct main" description: flutter @@ -268,18 +260,18 @@ packages: dependency: "direct main" description: name: flutter_markdown - sha256: "7c4e42e66fb24bc912b64860c69806ef5cc0ad1480772aa2201ede568125a379" + sha256: dc6d5258653f6857135b32896ccda7f7af0c54dcec832495ad6835154c6c77c0 url: "https://pub.dev" source: hosted - version: "0.6.9+1" + version: "0.6.15" flutter_mobx: dependency: "direct main" description: name: flutter_mobx - sha256: ce01a933f63fbd638b491042c55260db25d71d0d4c0f09bae1f8749552e26686 + sha256: "0da4add0016387a7bf309a0d0c41d36c6b3ae25ed7a176409267f166509e723e" url: "https://pub.dev" source: hosted - version: "2.0.4" + version: "2.0.6+5" flutter_staggered_grid_view: dependency: "direct main" description: @@ -339,26 +331,26 @@ packages: dependency: "direct main" description: name: get_it - sha256: "290fde3a86072e4b37dbb03c07bec6126f0ecc28dad403c12ffe2e5a2d751ab7" + sha256: "529de303c739fca98cd7ece5fca500d8ff89649f1bb4b4e94fb20954abcd7468" url: "https://pub.dev" source: hosted - version: "7.2.0" + version: "7.6.0" glob: dependency: transitive description: name: glob - sha256: "8321dd2c0ab0683a91a51307fa844c6db4aa8e3981219b78961672aaab434658" + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "2.1.2" graphs: dependency: transitive description: name: graphs - sha256: ae0b3d956ff324c6f8671f08dcb2dbd71c99cdbf2aa3ca63a14190c47aa6679c + sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.3.1" html: dependency: "direct main" description: @@ -371,18 +363,18 @@ packages: dependency: transitive description: name: http_multi_server - sha256: ab298ef2b2acd283bd36837df7801dcf6e6b925f8da6e09efb81111230aa9037 + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "3.2.1" http_parser: dependency: transitive description: name: http_parser - sha256: e362d639ba3bc07d5a71faebb98cde68c05bfbcfbbb444b60b6f60bb67719185 + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.2" integration_test: dependency: "direct dev" description: flutter @@ -400,10 +392,10 @@ packages: dependency: transitive description: name: io - sha256: "0d4c73c3653ab85bf696d51a9657604c900a370549196a91f33e4c39af760852" + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" js: dependency: transitive description: @@ -432,18 +424,18 @@ packages: dependency: transitive description: name: logging - sha256: "293ae2d49fd79d4c04944c3a26dfd313382d5f52e821ec57119230ae16031ad4" + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.2.0" markdown: dependency: transitive description: name: markdown - sha256: "01512006c8429f604eb10f9848717baeaedf99e991d14a50d540d9beff08e5c6" + sha256: "8e332924094383133cee218b676871f42db2514f1f6ac617b6cf6152a7faab8e" url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "7.1.0" matcher: dependency: transitive description: @@ -472,10 +464,10 @@ packages: dependency: transitive description: name: mime - sha256: fd5f81041e6a9fc9b9d7fa2cb8a01123f9f5d5d49136e06cb9dc7d33689529f4 + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.4" mobx: dependency: "direct main" description: @@ -504,10 +496,10 @@ packages: dependency: transitive description: name: package_config - sha256: a4d5ede5ca9c3d88a2fef1147a078570c861714c806485c596b109819135bc12 + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "2.1.0" path: dependency: transitive description: @@ -528,26 +520,26 @@ packages: dependency: transitive description: name: path_provider_linux - sha256: "1e109f4df28bd95eab71e323008b53d19c4d633bc1ab05b577518773474e9621" + sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57 url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.1.11" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - sha256: "3dc0d51b07f85fec3746d9f4e8d31c73bb173cafa2e763f03f8df2e8d1878882" + sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec" url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "2.0.6" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: "366ad4e3541ea707f859e7148d4d5aba67d589d7936cee04a05c464a277eeb27" + sha256: "1cb68ba4cd3a795033de62ba1b7b4564dace301f952de6bfb3cd91b202b6ee96" url: "https://pub.dev" source: hosted - version: "2.0.5" + version: "2.1.7" petitparser: dependency: transitive description: @@ -568,18 +560,18 @@ packages: dependency: transitive description: name: plugin_platform_interface - sha256: "075f927ebbab4262ace8d0b283929ac5410c0ac4e7fc123c76429564facfb757" + sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" pool: dependency: transitive description: name: pool - sha256: "05955e3de2683e1746222efd14b775df7131139e07695dc8e24650f6b4204504" + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "1.5.1" process: dependency: transitive description: @@ -592,18 +584,18 @@ packages: dependency: transitive description: name: pub_semver - sha256: "816c1a640e952d213ddd223b3e7aafae08cd9f8e1f6864eed304cc13b0272b07" + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.4" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: "0e01f805457ef610ccaf8d18067596afc34107a27149778b06b2083edbc140c1" + sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.2.3" pull_to_refresh: dependency: "direct main" description: @@ -624,82 +616,74 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: "1cd0c3c0be0826eb52362ab018a81eed13b616ad9a52548c6ceb1bb349e6b6eb" + sha256: "396f85b8afc6865182610c0a2fc470853d56499f75f7499e2a73a9f0539d23d0" url: "https://pub.dev" source: hosted - version: "2.0.13" + version: "2.1.2" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: bc236594233d10b7668dd90414fe0e09d906115aaa1dfe269e478e5f2af532a6 + sha256: "6478c6bbbecfe9aced34c483171e90d7c078f5883558b30ec3163cf18402c749" url: "https://pub.dev" source: hosted - version: "2.0.11" - shared_preferences_ios: + version: "2.1.4" + shared_preferences_foundation: dependency: transitive description: - name: shared_preferences_ios - sha256: "69d593a80fee48b97c66787eb930cdd42941c1537e80a1ff88a8c12a926c47d4" + name: shared_preferences_foundation + sha256: e014107bb79d6d3297196f4f2d0db54b5d1f85b8ea8ff63b8e8b391a02700feb url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.2.2" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux - sha256: ac361c65c4cf342dfc0a8b9e45eab66b9b3ad6eaff9785850d4ec0cf6b474422 - url: "https://pub.dev" - source: hosted - version: "2.1.0" - shared_preferences_macos: - dependency: transitive - description: - name: shared_preferences_macos - sha256: f063907c3f678de8daa033d234b7c9e420df5fe3d499a97bfb82cc30cf171496 + sha256: "9d387433ca65717bbf1be88f4d5bb18f10508917a8fa2fb02e0fd0d7479a9afa" url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "2.2.0" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface - sha256: "992f0fdc46d0a3c0ac2e5859f2de0e577bbe51f78a77ee8f357cbe626a2ad32d" + sha256: fb5cf25c0235df2d0640ac1b1174f6466bd311f621574997ac59018a6664548d url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.2.0" shared_preferences_web: dependency: transitive description: name: shared_preferences_web - sha256: "09da0185028a227d51721cade7a3cbd5cc5f163a19593266f2acba87f729bf9c" + sha256: "74083203a8eae241e0de4a0d597dbedab3b8fef5563f33cf3c12d7e93c655ca5" url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "2.1.0" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows - sha256: ae68cf0df0910e38c95522dbd8a6082ce9715053c369750c5709d17de81d032e + sha256: "5e588e2efef56916a3b229c3bfe81e6a525665a454519ca51dbcc4236a274173" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.2.0" shelf: dependency: transitive description: name: shelf - sha256: "4592f6cb6c417632ebdfb63e4db42a7e3ad49d1bd52d9f93b6eb883035ddc0c3" + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.1" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: fd84910bf7d58db109082edf7326b75322b8f186162028482f53dc892f00332d + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.4" sky_engine: dependency: transitive description: flutter @@ -749,10 +733,10 @@ packages: dependency: transitive description: name: stream_transform - sha256: ed464977cb26a1f41537e177e190c67223dbd9f4f683489b6ab2e5d211ec564e + sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.1.0" string_scanner: dependency: transitive description: @@ -789,82 +773,82 @@ packages: dependency: transitive description: name: timing - sha256: c386d07d7f5efc613479a7c4d9d64b03710b03cfaa7e8ad5f2bfb295a1f0dfad + sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.1" typed_data: dependency: transitive description: name: typed_data - sha256: "53bdf7e979cfbf3e28987552fd72f637e63f3c8724c9e56d9246942dc2fa36ee" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.3.2" url_launcher: dependency: "direct main" description: name: url_launcher - sha256: "76d8206356ed276e1df3eda6523486148776cf1e5381d630b5726c92bb774d7e" + sha256: eb1e00ab44303d50dd487aab67ebc575456c146c6af44422f9c13889984c00f3 url: "https://pub.dev" source: hosted - version: "6.0.20" + version: "6.1.11" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: b693e6698f7e6985710d67a050e3acbdda3b9cfc4b43b9f1c40cdbe42c705b92 + sha256: "15f5acbf0dce90146a0f5a2c4a002b1814a6303c4c5c075aa2623b2d16156f03" url: "https://pub.dev" source: hosted - version: "6.0.15" + version: "6.0.36" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: e51a93f0da65733beb69fdbc43cea524d86ed8e524479e9faefc9304cec34a57 + sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2" url: "https://pub.dev" source: hosted - version: "6.0.15" + version: "6.1.4" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: c3ec89d52305ec647cf037eafe2be8d2f1149b5723d1f2ec716fc3d58469de5d + sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.0.5" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: c028c7f80fdb99cf48b94c471c0f8b9b855a188f4865df76e2a7663ae640e9d2 + sha256: "91ee3e75ea9dadf38036200c5d3743518f4a5eb77a8d13fda1ee5764373f185e" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.0.5" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "1b9c4dab07794498b83b5f938e26b20f68c3b460a3015b0307f9541cb34ef93d" + sha256: bfdfa402f1f3298637d71ca8ecfe840b4696698213d5346e9d12d4ab647ee2ea url: "https://pub.dev" source: hosted - version: "2.0.5" + version: "2.1.3" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "2b5494722d4eb0fe1a12ceb15a4b132ba7dfc92793089c243bf109bed828d97f" + sha256: "6bb1e5d7fe53daf02a8fee85352432a40b1f868a81880e99ec7440113d5cfcab" url: "https://pub.dev" source: hosted - version: "2.0.9" + version: "2.0.17" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: aa14bdb9265fa22416fc387b33e44eb37fd38768bf465fafcec73d283f3457b1 + sha256: "254708f17f7c20a9c8c471f67d86d76d4a3f9c1591aad1e15292008aceb82771" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.0.6" vector_graphics: dependency: transitive description: @@ -909,18 +893,18 @@ packages: dependency: transitive description: name: watcher - sha256: e42dfcc48f67618344da967b10f62de57e04bae01d9d3af4c2596f3712a88c99 + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "0c2ada1b1aeb2ad031ca81872add6be049b8cb479262c6ad3c4b0f9c24eaab2f" + sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.4.0" webdriver: dependency: transitive description: @@ -933,18 +917,18 @@ packages: dependency: transitive description: name: win32 - sha256: "1709e736470cadbeefb717fb7936d014132d8a818de40f4be2f549a92ba50e82" + sha256: "1414f27dd781737e51afa9711f2ac2ace6ab4498ee98e20863fa5505aa00c58c" url: "https://pub.dev" source: hosted - version: "2.5.1" + version: "5.0.4" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: "060b6e1c891d956f72b5ac9463466c37cce3fa962a921532fc001e86fe93438e" + sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1 url: "https://pub.dev" source: hosted - version: "0.2.0+1" + version: "1.0.0" xml: dependency: transitive description: @@ -957,10 +941,10 @@ packages: dependency: transitive description: name: yaml - sha256: "3cee79b1715110341012d27756d9bae38e650588acd38d3f3c610822e1337ace" + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.2" sdks: dart: ">=3.0.0 <4.0.0" flutter: ">=3.7.0-0" diff --git a/pubspec.yaml b/pubspec.yaml index ce27360..32553c4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,7 +32,7 @@ dependencies: equatable: ^2.0.2 #network - dio: ^4.0.0 + dio: ^5.2.1+1 url_launcher: ^6.0.0-nullsafety # Dependency Injection @@ -57,9 +57,9 @@ dev_dependencies: integration_test: sdk: flutter mobx_codegen: ^2.0.1+3 - build_runner: ^2.0.1 + build_runner: json_serializable: ^6.7.0 - build_resolvers: ^2.0.1 + build_resolvers: ^2.2.0 # For information on the generic Dart part of this file, see the diff --git a/test/src/infrastructure/mocks.mocks.dart b/test/src/infrastructure/mocks.mocks.dart index ccc193b..29238f4 100644 --- a/test/src/infrastructure/mocks.mocks.dart +++ b/test/src/infrastructure/mocks.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.15 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in flutter_package/test/src/infrastructure/mocks.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i5; import 'package:dartz/dartz.dart' as _i3; @@ -19,6 +20,7 @@ import 'package:flutter_package/src/domain/search/i_search_repository.dart' as _i9; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references @@ -26,21 +28,79 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeDio_0 extends _i1.Fake implements _i2.Dio {} +class _FakeDio_0 extends _i1.SmartFake implements _i2.Dio { + _FakeDio_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeEither_1 extends _i1.Fake implements _i3.Either {} +class _FakeEither_1 extends _i1.SmartFake implements _i3.Either { + _FakeEither_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeBaseOptions_2 extends _i1.Fake implements _i2.BaseOptions {} +class _FakeBaseOptions_2 extends _i1.SmartFake implements _i2.BaseOptions { + _FakeBaseOptions_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeHttpClientAdapter_3 extends _i1.Fake - implements _i2.HttpClientAdapter {} +class _FakeHttpClientAdapter_3 extends _i1.SmartFake + implements _i2.HttpClientAdapter { + _FakeHttpClientAdapter_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeTransformer_4 extends _i1.Fake implements _i2.Transformer {} +class _FakeTransformer_4 extends _i1.SmartFake implements _i2.Transformer { + _FakeTransformer_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeInterceptors_5 extends _i1.Fake implements _i2.Interceptors {} +class _FakeInterceptors_5 extends _i1.SmartFake implements _i2.Interceptors { + _FakeInterceptors_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeResponse_6 extends _i1.Fake implements _i2.Response {} +class _FakeResponse_6 extends _i1.SmartFake implements _i2.Response { + _FakeResponse_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [IPackageRepository]. /// @@ -52,47 +112,97 @@ class MockIPackageRepository extends _i1.Mock } @override - String get path => - (super.noSuchMethod(Invocation.getter(#path), returnValue: '') as String); + String get path => (super.noSuchMethod( + Invocation.getter(#path), + returnValue: '', + ) as String); @override - _i2.Dio get dio => - (super.noSuchMethod(Invocation.getter(#dio), returnValue: _FakeDio_0()) - as _i2.Dio); + _i2.Dio get dio => (super.noSuchMethod( + Invocation.getter(#dio), + returnValue: _FakeDio_0( + this, + Invocation.getter(#dio), + ), + ) as _i2.Dio); @override _i5.Future<_i3.Either<_i6.RequestFailure, List<_i7.Package>>> getPackages( - {int? page}) => - (super.noSuchMethod(Invocation.method(#getPackages, [], {#page: page}), - returnValue: Future< - _i3.Either<_i6.RequestFailure, List<_i7.Package>>>.value( - _FakeEither_1<_i6.RequestFailure, List<_i7.Package>>())) - as _i5.Future<_i3.Either<_i6.RequestFailure, List<_i7.Package>>>); + {required int? page}) => + (super.noSuchMethod( + Invocation.method( + #getPackages, + [], + {#page: page}, + ), + returnValue: + _i5.Future<_i3.Either<_i6.RequestFailure, List<_i7.Package>>>.value( + _FakeEither_1<_i6.RequestFailure, List<_i7.Package>>( + this, + Invocation.method( + #getPackages, + [], + {#page: page}, + ), + )), + ) as _i5.Future<_i3.Either<_i6.RequestFailure, List<_i7.Package>>>); @override _i5.Future<_i3.Either<_i6.RequestFailure, String>> getPublisher( - {String? packageName}) => + {required String? packageName}) => (super.noSuchMethod( - Invocation.method(#getPublisher, [], {#packageName: packageName}), - returnValue: Future<_i3.Either<_i6.RequestFailure, String>>.value( - _FakeEither_1<_i6.RequestFailure, String>())) - as _i5.Future<_i3.Either<_i6.RequestFailure, String>>); + Invocation.method( + #getPublisher, + [], + {#packageName: packageName}, + ), + returnValue: _i5.Future<_i3.Either<_i6.RequestFailure, String>>.value( + _FakeEither_1<_i6.RequestFailure, String>( + this, + Invocation.method( + #getPublisher, + [], + {#packageName: packageName}, + ), + )), + ) as _i5.Future<_i3.Either<_i6.RequestFailure, String>>); @override _i5.Future<_i3.Either<_i6.RequestFailure, _i7.Package>> getPackageName( - {String? packageName}) => + {required String? packageName}) => (super.noSuchMethod( - Invocation.method(#getPackageName, [], {#packageName: packageName}), - returnValue: - Future<_i3.Either<_i6.RequestFailure, _i7.Package>>.value( - _FakeEither_1<_i6.RequestFailure, _i7.Package>())) as _i5 - .Future<_i3.Either<_i6.RequestFailure, _i7.Package>>); + Invocation.method( + #getPackageName, + [], + {#packageName: packageName}, + ), + returnValue: + _i5.Future<_i3.Either<_i6.RequestFailure, _i7.Package>>.value( + _FakeEither_1<_i6.RequestFailure, _i7.Package>( + this, + Invocation.method( + #getPackageName, + [], + {#packageName: packageName}, + ), + )), + ) as _i5.Future<_i3.Either<_i6.RequestFailure, _i7.Package>>); @override _i5.Future<_i3.Either<_i6.RequestFailure, _i8.Metric>> getMetricPackage( - {String? package}) => + {required String? package}) => (super.noSuchMethod( - Invocation.method(#getMetricPackage, [], {#package: package}), - returnValue: Future<_i3.Either<_i6.RequestFailure, _i8.Metric>>.value( - _FakeEither_1<_i6.RequestFailure, _i8.Metric>())) as _i5 - .Future<_i3.Either<_i6.RequestFailure, _i8.Metric>>); - @override - String toString() => super.toString(); + Invocation.method( + #getMetricPackage, + [], + {#package: package}, + ), + returnValue: + _i5.Future<_i3.Either<_i6.RequestFailure, _i8.Metric>>.value( + _FakeEither_1<_i6.RequestFailure, _i8.Metric>( + this, + Invocation.method( + #getMetricPackage, + [], + {#package: package}, + ), + )), + ) as _i5.Future<_i3.Either<_i6.RequestFailure, _i8.Metric>>); } /// A class which mocks [ISearchRepository]. @@ -104,23 +214,46 @@ class MockISearchRepository extends _i1.Mock implements _i9.ISearchRepository { } @override - String get path => - (super.noSuchMethod(Invocation.getter(#path), returnValue: '') as String); - @override - _i2.Dio get dio => - (super.noSuchMethod(Invocation.getter(#dio), returnValue: _FakeDio_0()) - as _i2.Dio); - @override - _i5.Future<_i3.Either<_i6.RequestFailure, List>> searchPackage( - {int? page, String? query}) => + String get path => (super.noSuchMethod( + Invocation.getter(#path), + returnValue: '', + ) as String); + @override + _i2.Dio get dio => (super.noSuchMethod( + Invocation.getter(#dio), + returnValue: _FakeDio_0( + this, + Invocation.getter(#dio), + ), + ) as _i2.Dio); + @override + _i5.Future<_i3.Either<_i6.RequestFailure, List>> searchPackage({ + required int? page, + required String? query, + }) => (super.noSuchMethod( - Invocation.method(#searchPackage, [], {#page: page, #query: query}), - returnValue: - Future<_i3.Either<_i6.RequestFailure, List>>.value( - _FakeEither_1<_i6.RequestFailure, List>())) as _i5 - .Future<_i3.Either<_i6.RequestFailure, List>>); - @override - String toString() => super.toString(); + Invocation.method( + #searchPackage, + [], + { + #page: page, + #query: query, + }, + ), + returnValue: + _i5.Future<_i3.Either<_i6.RequestFailure, List>>.value( + _FakeEither_1<_i6.RequestFailure, List>( + this, + Invocation.method( + #searchPackage, + [], + { + #page: page, + #query: query, + }, + ), + )), + ) as _i5.Future<_i3.Either<_i6.RequestFailure, List>>); } /// A class which mocks [IAdvancedService]. @@ -132,16 +265,32 @@ class MockIAdvancedService extends _i1.Mock implements _i10.IAdvancedService { } @override - _i5.Future<_i3.Either<_i6.RequestFailure, String>> readFile( - {String? gitPath, String? fileName}) => + _i5.Future<_i3.Either<_i6.RequestFailure, String>> readFile({ + required String? gitPath, + required String? fileName, + }) => (super.noSuchMethod( - Invocation.method( - #readFile, [], {#gitPath: gitPath, #fileName: fileName}), - returnValue: Future<_i3.Either<_i6.RequestFailure, String>>.value( - _FakeEither_1<_i6.RequestFailure, String>())) - as _i5.Future<_i3.Either<_i6.RequestFailure, String>>); - @override - String toString() => super.toString(); + Invocation.method( + #readFile, + [], + { + #gitPath: gitPath, + #fileName: fileName, + }, + ), + returnValue: _i5.Future<_i3.Either<_i6.RequestFailure, String>>.value( + _FakeEither_1<_i6.RequestFailure, String>( + this, + Invocation.method( + #readFile, + [], + { + #gitPath: gitPath, + #fileName: fileName, + }, + ), + )), + ) as _i5.Future<_i3.Either<_i6.RequestFailure, String>>); } /// A class which mocks [Dio]. @@ -153,341 +302,676 @@ class MockApi extends _i1.Mock implements _i2.Dio { } @override - _i2.BaseOptions get options => - (super.noSuchMethod(Invocation.getter(#options), - returnValue: _FakeBaseOptions_2()) as _i2.BaseOptions); - @override - set options(_i2.BaseOptions? _options) => - super.noSuchMethod(Invocation.setter(#options, _options), - returnValueForMissingStub: null); - @override - _i2.HttpClientAdapter get httpClientAdapter => - (super.noSuchMethod(Invocation.getter(#httpClientAdapter), - returnValue: _FakeHttpClientAdapter_3()) as _i2.HttpClientAdapter); - @override - set httpClientAdapter(_i2.HttpClientAdapter? _httpClientAdapter) => super - .noSuchMethod(Invocation.setter(#httpClientAdapter, _httpClientAdapter), - returnValueForMissingStub: null); - @override - _i2.Transformer get transformer => - (super.noSuchMethod(Invocation.getter(#transformer), - returnValue: _FakeTransformer_4()) as _i2.Transformer); - @override - set transformer(_i2.Transformer? _transformer) => - super.noSuchMethod(Invocation.setter(#transformer, _transformer), - returnValueForMissingStub: null); - @override - _i2.Interceptors get interceptors => - (super.noSuchMethod(Invocation.getter(#interceptors), - returnValue: _FakeInterceptors_5()) as _i2.Interceptors); - @override - void close({bool? force = false}) => - super.noSuchMethod(Invocation.method(#close, [], {#force: force}), - returnValueForMissingStub: null); - @override - _i5.Future<_i2.Response> get(String? path, - {Map? queryParameters, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onReceiveProgress}) => + _i2.BaseOptions get options => (super.noSuchMethod( + Invocation.getter(#options), + returnValue: _FakeBaseOptions_2( + this, + Invocation.getter(#options), + ), + ) as _i2.BaseOptions); + @override + set options(_i2.BaseOptions? _options) => super.noSuchMethod( + Invocation.setter( + #options, + _options, + ), + returnValueForMissingStub: null, + ); + @override + _i2.HttpClientAdapter get httpClientAdapter => (super.noSuchMethod( + Invocation.getter(#httpClientAdapter), + returnValue: _FakeHttpClientAdapter_3( + this, + Invocation.getter(#httpClientAdapter), + ), + ) as _i2.HttpClientAdapter); + @override + set httpClientAdapter(_i2.HttpClientAdapter? _httpClientAdapter) => + super.noSuchMethod( + Invocation.setter( + #httpClientAdapter, + _httpClientAdapter, + ), + returnValueForMissingStub: null, + ); + @override + _i2.Transformer get transformer => (super.noSuchMethod( + Invocation.getter(#transformer), + returnValue: _FakeTransformer_4( + this, + Invocation.getter(#transformer), + ), + ) as _i2.Transformer); + @override + set transformer(_i2.Transformer? _transformer) => super.noSuchMethod( + Invocation.setter( + #transformer, + _transformer, + ), + returnValueForMissingStub: null, + ); + @override + _i2.Interceptors get interceptors => (super.noSuchMethod( + Invocation.getter(#interceptors), + returnValue: _FakeInterceptors_5( + this, + Invocation.getter(#interceptors), + ), + ) as _i2.Interceptors); + @override + void close({bool? force = false}) => super.noSuchMethod( + Invocation.method( + #close, + [], + {#force: force}, + ), + returnValueForMissingStub: null, + ); + @override + _i5.Future<_i2.Response> get( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#get, [ - path - ], { - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> getUri(Uri? uri, - {_i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #get, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #get, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> getUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#getUri, [ - uri - ], { - #options: options, - #cancelToken: cancelToken, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> post(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #getUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #getUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> post( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#post, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> postUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #post, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #post, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> postUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#postUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> put(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #postUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #postUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> put( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#put, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> putUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #put, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #put, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> putUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#putUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> head(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i2.CancelToken? cancelToken}) => + Invocation.method( + #putUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #putUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> head( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i2.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#head, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> headUri(Uri? uri, - {dynamic data, _i2.Options? options, _i2.CancelToken? cancelToken}) => + Invocation.method( + #head, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #head, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> headUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i2.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#headUri, [uri], - {#data: data, #options: options, #cancelToken: cancelToken}), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> delete(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i2.CancelToken? cancelToken}) => + Invocation.method( + #headUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #headUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> delete( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i2.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#delete, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> deleteUri(Uri? uri, - {dynamic data, _i2.Options? options, _i2.CancelToken? cancelToken}) => + Invocation.method( + #delete, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #delete, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> deleteUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i2.CancelToken? cancelToken, + }) => (super.noSuchMethod( - Invocation.method(#deleteUri, [uri], - {#data: data, #options: options, #cancelToken: cancelToken}), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> patch(String? path, - {dynamic data, - Map? queryParameters, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #deleteUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #deleteUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> patch( + String? path, { + Object? data, + Map? queryParameters, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#patch, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> patchUri(Uri? uri, - {dynamic data, - _i2.Options? options, - _i2.CancelToken? cancelToken, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #patch, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #patch, + [path], + { + #data: data, + #queryParameters: queryParameters, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> patchUri( + Uri? uri, { + Object? data, + _i2.Options? options, + _i2.CancelToken? cancelToken, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#patchUri, [ - uri - ], { - #data: data, - #options: options, - #cancelToken: cancelToken, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - void lock() => super.noSuchMethod(Invocation.method(#lock, []), - returnValueForMissingStub: null); - @override - void unlock() => super.noSuchMethod(Invocation.method(#unlock, []), - returnValueForMissingStub: null); - @override - void clear() => super.noSuchMethod(Invocation.method(#clear, []), - returnValueForMissingStub: null); - @override - _i5.Future<_i2.Response> download(String? urlPath, dynamic savePath, - {_i2.ProgressCallback? onReceiveProgress, - Map? queryParameters, - _i2.CancelToken? cancelToken, - bool? deleteOnError = true, - String? lengthHeader = r'content-length', - dynamic data, - _i2.Options? options}) => + Invocation.method( + #patchUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #patchUri, + [uri], + { + #data: data, + #options: options, + #cancelToken: cancelToken, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> download( + String? urlPath, + dynamic savePath, { + _i2.ProgressCallback? onReceiveProgress, + Map? queryParameters, + _i2.CancelToken? cancelToken, + bool? deleteOnError = true, + String? lengthHeader = r'content-length', + Object? data, + _i2.Options? options, + }) => (super.noSuchMethod( - Invocation.method(#download, [ - urlPath, - savePath - ], { - #onReceiveProgress: onReceiveProgress, - #queryParameters: queryParameters, - #cancelToken: cancelToken, - #deleteOnError: deleteOnError, - #lengthHeader: lengthHeader, - #data: data, - #options: options - }), - returnValue: Future<_i2.Response>.value( - _FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> downloadUri(Uri? uri, dynamic savePath, - {_i2.ProgressCallback? onReceiveProgress, - _i2.CancelToken? cancelToken, - bool? deleteOnError = true, - String? lengthHeader = r'content-length', - dynamic data, - _i2.Options? options}) => + Invocation.method( + #download, + [ + urlPath, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + returnValue: + _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #download, + [ + urlPath, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> downloadUri( + Uri? uri, + dynamic savePath, { + _i2.ProgressCallback? onReceiveProgress, + _i2.CancelToken? cancelToken, + bool? deleteOnError = true, + String? lengthHeader = r'content-length', + Object? data, + _i2.Options? options, + }) => (super.noSuchMethod( - Invocation.method(#downloadUri, [ - uri, - savePath - ], { - #onReceiveProgress: onReceiveProgress, - #cancelToken: cancelToken, - #deleteOnError: deleteOnError, - #lengthHeader: lengthHeader, - #data: data, - #options: options - }), - returnValue: Future<_i2.Response>.value( - _FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> request(String? path, - {dynamic data, - Map? queryParameters, - _i2.CancelToken? cancelToken, - _i2.Options? options, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #downloadUri, + [ + uri, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + returnValue: + _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #downloadUri, + [ + uri, + savePath, + ], + { + #onReceiveProgress: onReceiveProgress, + #cancelToken: cancelToken, + #deleteOnError: deleteOnError, + #lengthHeader: lengthHeader, + #data: data, + #options: options, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> request( + String? path, { + Object? data, + Map? queryParameters, + _i2.CancelToken? cancelToken, + _i2.Options? options, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#request, [ - path - ], { - #data: data, - #queryParameters: queryParameters, - #cancelToken: cancelToken, - #options: options, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - _i5.Future<_i2.Response> requestUri(Uri? uri, - {dynamic data, - _i2.CancelToken? cancelToken, - _i2.Options? options, - _i2.ProgressCallback? onSendProgress, - _i2.ProgressCallback? onReceiveProgress}) => + Invocation.method( + #request, + [path], + { + #data: data, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #request, + [path], + { + #data: data, + #queryParameters: queryParameters, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); + @override + _i5.Future<_i2.Response> requestUri( + Uri? uri, { + Object? data, + _i2.CancelToken? cancelToken, + _i2.Options? options, + _i2.ProgressCallback? onSendProgress, + _i2.ProgressCallback? onReceiveProgress, + }) => (super.noSuchMethod( - Invocation.method(#requestUri, [ - uri - ], { - #data: data, - #cancelToken: cancelToken, - #options: options, - #onSendProgress: onSendProgress, - #onReceiveProgress: onReceiveProgress - }), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); + Invocation.method( + #requestUri, + [uri], + { + #data: data, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #requestUri, + [uri], + { + #data: data, + #cancelToken: cancelToken, + #options: options, + #onSendProgress: onSendProgress, + #onReceiveProgress: onReceiveProgress, + }, + ), + )), + ) as _i5.Future<_i2.Response>); @override _i5.Future<_i2.Response> fetch(_i2.RequestOptions? requestOptions) => - (super.noSuchMethod(Invocation.method(#fetch, [requestOptions]), - returnValue: Future<_i2.Response>.value(_FakeResponse_6())) - as _i5.Future<_i2.Response>); - @override - String toString() => super.toString(); + (super.noSuchMethod( + Invocation.method( + #fetch, + [requestOptions], + ), + returnValue: _i5.Future<_i2.Response>.value(_FakeResponse_6( + this, + Invocation.method( + #fetch, + [requestOptions], + ), + )), + ) as _i5.Future<_i2.Response>); }