From 490cca05b1a417e05f9540d70966e516912c9e1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 20:54:19 +0000 Subject: [PATCH 1/2] Bump freezed from 3.2.6-dev.1 to 4.0.2 Bumps [freezed](https://github.com/rrousselGit/freezed) from 3.2.6-dev.1 to 4.0.2. - [Commits](https://github.com/rrousselGit/freezed/compare/freezed-v3.2.6-dev.1...freezed-v4.0.2) --- updated-dependencies: - dependency-name: freezed dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pubspec.lock | 164 +++++++++++++++------------------------------------ pubspec.yaml | 2 +- 2 files changed, 47 insertions(+), 119 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 8aaae411b..00e048e4a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,26 +5,26 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: a49d6cf99e8d8e7a8e93668d09ced0bbdb954d0b4fccc2f5f9241c6b87fad95c + sha256: fdcd9f70f9eb80df3bc5ed0fa67280df2595fd481948df8a9ab082e6a40ad04b url: "https://pub.dev" source: hosted - version: "99.0.0" + version: "108.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "663efa951fb8a45e06f491223a604c93820598f20e6a99c25617a1576065e8b7" + sha256: a51c769bff3b6dfbe9d60199b8606d808290702a296bef0c26a4ca391d414e46 url: "https://pub.dev" source: hosted - version: "12.1.0" + version: "14.4.0" analyzer_buffer: dependency: transitive description: name: analyzer_buffer - sha256: "445b77e2054fa3e8c8a8ef1b5e9e6b23bb8028fffd34b5e60eaef315b7750674" + sha256: f890a2e708e38fbf4238ad2f9fd3d506538acdddb0cd8eb2c3e8c7bd17784b57 url: "https://pub.dev" source: hosted - version: "0.3.3" + version: "0.3.4" ansicolor: dependency: transitive description: @@ -101,10 +101,10 @@ packages: dependency: transitive description: name: build - sha256: "45d14a0fb23e018d8287c32fc98d726ce466b231928ed9b9200f29bd3ccd39ae" + sha256: "8a5c5761af8e31748bba3c82f68925ace40f3225c3eea25be9beb57eca7cd7a8" url: "https://pub.dev" source: hosted - version: "4.0.7" + version: "4.0.11" build_config: dependency: transitive description: @@ -125,10 +125,10 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "5367e521935b102bdf1e735d2aab461e36b2edca6517662d088dd04cc39f8d16" + sha256: "894c243f6bc32015fec466ce30a6925bd537a77a426ee5bf481120477eb3de67" url: "https://pub.dev" source: hosted - version: "2.15.1" + version: "2.16.1" built_collection: dependency: transitive description: @@ -233,14 +233,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.10" - cli_config: - dependency: transitive - description: - name: cli_config - sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec - url: "https://pub.dev" - source: hosted - version: "0.2.0" cli_util: dependency: transitive description: @@ -305,14 +297,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.2" - coverage: - dependency: transitive - description: - name: coverage - sha256: "956a3de0725ca232ad353565a8290d3357592bf4250f6f298a185e2d949c5d3d" - url: "https://pub.dev" - source: hosted - version: "1.15.1" cross_file: dependency: transitive description: @@ -357,10 +341,10 @@ packages: dependency: transitive description: name: dart_style - sha256: a4c1ccfee44c7e75ed80484071a5c142a385345e658fd8bd7c4b5c97e7198f98 + sha256: "82ade9fc4273f29ed673e33166944465225b4f7fc5d4aaef48605cc751c18fc1" url: "https://pub.dev" source: hosted - version: "3.1.8" + version: "3.1.13" dbus: dependency: transitive description: @@ -397,10 +381,10 @@ packages: dependency: "direct dev" description: name: drift_dev - sha256: "9cfff1576b49725da0d32c040651a41ae195e8c4af8d8da301593e41d7abc2f7" + sha256: fbad5c1e3a73820cdb1f32161eb2f40bb5e5f03c0c1a3d236595725aec7efc6d url: "https://pub.dev" source: hosted - version: "2.34.0" + version: "2.35.0" drift_sqlite_async: dependency: "direct main" description: @@ -588,10 +572,10 @@ packages: dependency: "direct main" description: name: flutter_riverpod - sha256: "9255e1e3ad6e38906a1b4f8287678f95f378744c5b46b1985588543f3f19046e" + sha256: "2b7f9d2a3c730ac1a98221b420cef966b990fca7ab546ede324642ca57a533e3" url: "https://pub.dev" source: hosted - version: "3.3.2" + version: "3.4.3" flutter_secure_storage: dependency: "direct main" description: @@ -702,10 +686,10 @@ packages: dependency: "direct dev" description: name: freezed - sha256: "8599ba37236328ff6f97269ecce875d251a367eb2929c9bbf9b811b2ce56c74e" + sha256: "3af98c92d7d4dd182ea1393193e69a840fcbaee1f66f1158bd20504e5f3f6f4f" url: "https://pub.dev" source: hosted - version: "3.2.6-dev.1" + version: "4.0.2" freezed_annotation: dependency: "direct main" description: @@ -714,14 +698,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 - url: "https://pub.dev" - source: hosted - version: "4.0.0" fuchsia_remote_debug_protocol: dependency: transitive description: flutter @@ -989,6 +965,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.2" + listen: + dependency: transitive + description: + name: listen + sha256: "47501a08016a43fcad79252439d723f50f14f88fa7bfd8a177e0a417e5c9e1f2" + url: "https://pub.dev" + source: hosted + version: "1.0.1" logging: dependency: "direct main" description: @@ -1057,10 +1041,10 @@ packages: dependency: "direct dev" description: name: mockito - sha256: eff30d002f0c8bf073b6f929df4483b543133fcafce056870163587b03f1d422 + sha256: "6c1970612452260366064d4df80fdb3eece1ec5e52610ae34a0e51f2f3d8e64f" url: "https://pub.dev" source: hosted - version: "5.6.4" + version: "5.8.1" multi_select_flutter: dependency: "direct main" description: @@ -1093,14 +1077,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" objective_c: dependency: transitive description: @@ -1305,34 +1281,34 @@ packages: dependency: transitive description: name: riverpod - sha256: "17100416c51db7810c71a7bb2c34d1f881faa0074fd452afb0c4db6f8f126c76" + sha256: "484dfc873ea4c4f4240e5635444fa066f87b07862b7279ebd004a2b71fba4b7a" url: "https://pub.dev" source: hosted - version: "3.3.2" + version: "3.4.3" riverpod_analyzer_utils: dependency: transitive description: name: riverpod_analyzer_utils - sha256: "3e275138862ccc22ed61444a1f9a840f753094c367f28f4123f50289cd204d68" + sha256: bb13cb3985815840cc103eda1027158358c5fdc00f308fc6f76574d0594107af url: "https://pub.dev" source: hosted - version: "1.0.0-dev.10" + version: "1.0.0-dev.12" riverpod_annotation: dependency: "direct main" description: name: riverpod_annotation - sha256: "674dbb26e2db3d9253166faf4758c796af14146b8fbcf5e7102bc8a04cd359b8" + sha256: "322e56ad198928ef26ba240f85421bfff2493bd65665c887b1299e6386b6206d" url: "https://pub.dev" source: hosted - version: "4.0.3" + version: "4.0.7" riverpod_generator: dependency: "direct dev" description: name: riverpod_generator - sha256: "54d790c3fee1ae281c448801bfdbfaa9fd961a9d3998494e0fcd9ee32184d7eb" + sha256: c94dcb8b60ff4805d2bb8cacca969c48237bcb563e2ab0b5afb50204470c7636 url: "https://pub.dev" source: hosted - version: "4.0.4" + version: "4.0.9" shared_preferences: dependency: "direct main" description: @@ -1397,22 +1373,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.4.2" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 - url: "https://pub.dev" - source: hosted - version: "1.1.3" shelf_web_socket: dependency: transitive description: @@ -1450,22 +1410,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.13" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b - url: "https://pub.dev" - source: hosted - version: "2.1.2" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "14c2945847669b44089bb1222f66873d7ff7103c58911917f2a63c5a62327898" - url: "https://pub.dev" - source: hosted - version: "0.10.14" source_span: dependency: transitive description: @@ -1526,10 +1470,10 @@ packages: dependency: transitive description: name: sqlparser - sha256: "40bdddb306a727be9ce510bd2d2b9a6c9db6c586d846ef7b22e3990a2b24f02d" + sha256: "772bb2f6f5bce0631a60f26b57d6e8882e1105c22345b05c163ee6ee5d7ba32d" url: "https://pub.dev" source: hosted - version: "0.44.5" + version: "0.45.0" stack_trace: dependency: transitive description: @@ -1594,14 +1538,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.2" - test: - dependency: transitive - description: - name: test - sha256: ca578dc12bb8b2f40b67b7d3bd2fac4f31c01a6ff7130a14e2597b919934507f - url: "https://pub.dev" - source: hosted - version: "1.31.1" test_api: dependency: transitive description: @@ -1610,14 +1546,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.12" - test_core: - dependency: transitive - description: - name: test_core - sha256: d2e98ec12998368dc59ddd47ab709f2cd55acd6b66dc7db764455a44082f4bc5 - url: "https://pub.dev" - source: hosted - version: "0.6.18" timezone: dependency: "direct main" description: @@ -1850,14 +1778,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.0" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" win32: dependency: transitive description: @@ -1898,6 +1818,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.3" + yaml_edit: + dependency: transitive + description: + name: yaml_edit + sha256: "07c9e63ba42519745182b88ca12264a7ba2484d8239958778dfe4d44fe760488" + url: "https://pub.dev" + source: hosted + version: "2.2.4" sdks: dart: ">=3.13.0 <4.0.0" flutter: ">=3.47.0" diff --git a/pubspec.yaml b/pubspec.yaml index 82996cf28..1971166fc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -100,7 +100,7 @@ dev_dependencies: xml: ^7.0.1 flutter_lints: ^6.0.0 flutter_native_splash: ^2.4.8 - freezed: ^3.2.0 + freezed: ^4.0.2 # Used to strip the alpha channel from the generated store screenshots image: ^4.10.1 json_serializable: ^6.14.1 From 233a3c8312165516696a0adfd41ee2f6c480601c Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Sat, 26 Sep 2026 23:18:36 +0200 Subject: [PATCH 2/2] Regenerate code for freezed 4 and drop field @override --- lib/core/app_settings_notifier.freezed.dart | 26 ++- lib/core/license.freezed.dart | 24 ++- lib/core/network/auth_credential.freezed.dart | 24 ++- lib/core/network/auth_state.freezed.dart | 24 ++- lib/database/powersync/database.g.dart | 170 +++++++++++---- .../models/exercise_submission.freezed.dart | 91 +++++--- .../providers/add_exercise_state.freezed.dart | 26 ++- .../health/providers/health_sync.freezed.dart | 24 ++- .../models/measurement_category.dart | 12 -- .../models/measurement_category.freezed.dart | 41 +--- .../models/measurement_entry.dart | 8 - .../models/measurement_entry.freezed.dart | 25 +-- lib/features/routines/models/session.dart | 8 - .../routines/models/session.freezed.dart | 17 +- .../media_url_prefix_notifier_test.mocks.dart | 5 +- .../auth_credentials_storage_test.mocks.dart | 4 +- .../network/auth_http_client_test.mocks.dart | 4 +- .../auth_notifier_login_test.mocks.dart | 4 +- .../auth_notifier_powersync_test.mocks.dart | 4 +- .../network/base_provider_test.mocks.dart | 4 +- test/core/recovery_screens_test.mocks.dart | 4 +- test/core/validators_test.mocks.dart | 4 +- .../account_notifier_test.mocks.dart | 4 +- .../account_repository_test.mocks.dart | 4 +- .../user_profile_notifier_test.mocks.dart | 4 +- .../account/widgets/forms_test.mocks.dart | 4 +- .../account/widgets/settings_test.mocks.dart | 5 +- .../auth/screens/auth_screen_test.mocks.dart | 4 +- .../mfa_challenge_screen_test.mocks.dart | 4 +- .../add_exercise_notifier_test.mocks.dart | 4 +- .../add_exercise_repository_test.mocks.dart | 4 +- .../exercise_filters_notifier_test.mocks.dart | 4 +- .../exercise_repository_test.mocks.dart | 4 +- .../exercises_notifier_test.mocks.dart | 4 +- .../add_exercise_screen_test.mocks.dart | 4 +- .../exercises_detail_widget_test.mocks.dart | 4 +- .../gallery_notifier_test.mocks.dart | 4 +- .../gallery_repository_test.mocks.dart | 4 +- .../screens/gallery_screen_test.mocks.dart | 4 +- .../gallery/widgets/forms_test.mocks.dart | 4 +- .../gallery/widgets/overview_test.mocks.dart | 4 +- .../providers/health_importer_test.mocks.dart | 4 +- .../health_repository_test.mocks.dart | 4 +- .../providers/health_sync_test.mocks.dart | 4 +- .../body_weight_provider_test.mocks.dart | 4 +- .../measurement_notifier_test.mocks.dart | 4 +- ...surement_categories_screen_test.mocks.dart | 4 +- ...ement_category_sort_screen_test.mocks.dart | 4 +- ...measurement_entries_screen_test.mocks.dart | 4 +- .../screens/weight_screen_test.mocks.dart | 4 +- .../widgets/calculation_mark_test.mocks.dart | 4 +- .../calculation_params_test.mocks.dart | 4 +- .../widgets/categories_test.mocks.dart | 4 +- .../widgets/entries_test.mocks.dart | 4 +- .../widgets/forms/category_test.mocks.dart | 4 +- .../widgets/forms/entry_test.mocks.dart | 4 +- .../widgets/forms/group_entry_test.mocks.dart | 4 +- .../widgets/measurement_fab_test.mocks.dart | 4 +- .../widgets/measurement_tile_test.mocks.dart | 4 +- .../widgets/metric_picker_test.mocks.dart | 4 +- .../widgets/weight_form_test.mocks.dart | 4 +- .../ingredient_notifier_test.mocks.dart | 4 +- .../ingredient_repository_test.mocks.dart | 4 +- .../nutrition_notifier_test.mocks.dart | 4 +- .../nutritional_plan_screen_test.mocks.dart | 4 +- .../nutritional_plans_screen_test.mocks.dart | 4 +- .../ingredient_typeahead_test.mocks.dart | 4 +- .../nutritional_meal_form_test.mocks.dart | 4 +- ...nutritional_meal_item_form_test.mocks.dart | 4 +- .../nutritional_plan_form_test.mocks.dart | 4 +- .../widgets/plan_weight_chart_test.mocks.dart | 4 +- .../routine_form_test_overrides.mocks.dart | 4 +- .../providers/plate_weights_test.mocks.dart | 5 +- .../routines_notifier_test.mocks.dart | 4 +- .../routines_repository_test.mocks.dart | 196 +++++++++--------- .../workout_logs_notifier_test.mocks.dart | 4 +- .../routines/screens/gym_mode_test.mocks.dart | 4 +- .../routine_list_screen_test.mocks.dart | 4 +- .../routine_logs_screen_test.mocks.dart | 4 +- .../widgets/forms/day_form_test.mocks.dart | 4 +- .../forms/routine_form_test.mocks.dart | 4 +- .../forms/session_form_test.mocks.dart | 4 +- .../forms/slot_entry_form_test.mocks.dart | 4 +- .../widgets/forms/slot_test.mocks.dart | 4 +- .../widgets/gym_mode/log_page_test.mocks.dart | 4 +- .../gym_mode/session_page_test.mocks.dart | 4 +- .../widgets/routine_edit_test.mocks.dart | 4 +- .../trophy_repository_test.mocks.dart | 4 +- test/powersync/api_client_test.mocks.dart | 4 +- test/powersync/connector_test.mocks.dart | 4 +- .../screenshots_01_dashboard.mocks.dart | 4 +- .../screenshots_02_workout.mocks.dart | 4 +- .../screenshots_04_measurements.mocks.dart | 4 +- ...screenshots_05_nutritional_plan.mocks.dart | 4 +- 94 files changed, 580 insertions(+), 455 deletions(-) diff --git a/lib/core/app_settings_notifier.freezed.dart b/lib/core/app_settings_notifier.freezed.dart index cca81b01d..9372bf129 100644 --- a/lib/core/app_settings_notifier.freezed.dart +++ b/lib/core/app_settings_notifier.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'app_settings_notifier.dart'; @@ -9,6 +9,7 @@ part of 'app_settings_notifier.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc @@ -34,16 +35,21 @@ $AppSettingsCopyWith get copyWith => _$AppSettingsCopyWithImpl Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts,useDynamicColor,verboseLogging); +int get hashCode { + final _this = this as AppSettings; + return Object.hash(runtimeType,_this.themeMode,const DeepCollectionEquality().hash(_this.dashboardItems),_this.userLocale,_this.keepDataOnLogout,_this.allowSelfSignedCerts,_this.useDynamicColor,_this.verboseLogging); +} @override String toString() { - return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts, useDynamicColor: $useDynamicColor, verboseLogging: $verboseLogging)'; + final _this = this as AppSettings; + return 'AppSettings(themeMode: ${_this.themeMode}, dashboardItems: ${_this.dashboardItems}, userLocale: ${_this.userLocale}, keepDataOnLogout: ${_this.keepDataOnLogout}, allowSelfSignedCerts: ${_this.allowSelfSignedCerts}, useDynamicColor: ${_this.useDynamicColor}, verboseLogging: ${_this.verboseLogging})'; } @@ -72,7 +78,7 @@ class _$AppSettingsCopyWithImpl<$Res> /// Create a copy of AppSettings /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? themeMode = null,Object? dashboardItems = null,Object? userLocale = freezed,Object? keepDataOnLogout = null,Object? allowSelfSignedCerts = null,Object? useDynamicColor = null,Object? verboseLogging = null,}) { - return _then(_self.copyWith( + return _then(AppSettings( themeMode: null == themeMode ? _self.themeMode : themeMode // ignore: cast_nullable_to_non_nullable as ThemeMode,dashboardItems: null == dashboardItems ? _self.dashboardItems : dashboardItems // ignore: cast_nullable_to_non_nullable as List,userLocale: freezed == userLocale ? _self.userLocale : userLocale // ignore: cast_nullable_to_non_nullable @@ -215,7 +221,7 @@ return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keep class _AppSettings implements AppSettings { - const _AppSettings({this.themeMode = ThemeMode.system, final List dashboardItems = const [], this.userLocale, this.keepDataOnLogout = KEEP_DATA_ON_LOGOUT_DEFAULT, this.allowSelfSignedCerts = ALLOW_SELF_SIGNED_CERTS_DEFAULT, this.useDynamicColor = USE_DYNAMIC_COLOR_DEFAULT, this.verboseLogging = VERBOSE_LOGGING_DEFAULT}): _dashboardItems = dashboardItems; + const _AppSettings({this.themeMode = ThemeMode.system, List dashboardItems = const [], this.userLocale, this.keepDataOnLogout = KEEP_DATA_ON_LOGOUT_DEFAULT, this.allowSelfSignedCerts = ALLOW_SELF_SIGNED_CERTS_DEFAULT, this.useDynamicColor = USE_DYNAMIC_COLOR_DEFAULT, this.verboseLogging = VERBOSE_LOGGING_DEFAULT}): _dashboardItems = dashboardItems; @override@JsonKey() final ThemeMode themeMode; @@ -251,16 +257,18 @@ _$AppSettingsCopyWith<_AppSettings> get copyWith => __$AppSettingsCopyWithImpl<_ @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AppSettings&&(identical(other.themeMode, themeMode) || other.themeMode == themeMode)&&const DeepCollectionEquality().equals(other._dashboardItems, _dashboardItems)&&(identical(other.userLocale, userLocale) || other.userLocale == userLocale)&&(identical(other.keepDataOnLogout, keepDataOnLogout) || other.keepDataOnLogout == keepDataOnLogout)&&(identical(other.allowSelfSignedCerts, allowSelfSignedCerts) || other.allowSelfSignedCerts == allowSelfSignedCerts)&&(identical(other.useDynamicColor, useDynamicColor) || other.useDynamicColor == useDynamicColor)&&(identical(other.verboseLogging, verboseLogging) || other.verboseLogging == verboseLogging)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AppSettings&&(identical(other.themeMode, themeMode) || other.themeMode == themeMode)&&const DeepCollectionEquality().equals(other.dashboardItems, _dashboardItems)&&(identical(other.userLocale, userLocale) || other.userLocale == userLocale)&&(identical(other.keepDataOnLogout, keepDataOnLogout) || other.keepDataOnLogout == keepDataOnLogout)&&(identical(other.allowSelfSignedCerts, allowSelfSignedCerts) || other.allowSelfSignedCerts == allowSelfSignedCerts)&&(identical(other.useDynamicColor, useDynamicColor) || other.useDynamicColor == useDynamicColor)&&(identical(other.verboseLogging, verboseLogging) || other.verboseLogging == verboseLogging)); } @override -int get hashCode => Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(_dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts,useDynamicColor,verboseLogging); +int get hashCode { + return Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(_dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts,useDynamicColor,verboseLogging); +} @override String toString() { - return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts, useDynamicColor: $useDynamicColor, verboseLogging: $verboseLogging)'; + return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts, useDynamicColor: $useDynamicColor, verboseLogging: $verboseLogging)'; } diff --git a/lib/core/license.freezed.dart b/lib/core/license.freezed.dart index 6787a0484..95f331247 100644 --- a/lib/core/license.freezed.dart +++ b/lib/core/license.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'license.dart'; @@ -9,6 +9,7 @@ part of 'license.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc @@ -25,16 +26,21 @@ $LicenseCopyWith get copyWith => _$LicenseCopyWithImpl(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is License&&(identical(other.id, id) || other.id == id)&&(identical(other.shortName, shortName) || other.shortName == shortName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.url, url) || other.url == url)); + final _this = this as License; + return identical(this, other) || (other.runtimeType == runtimeType&&other is License&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.shortName, _this.shortName) || other.shortName == _this.shortName)&&(identical(other.fullName, _this.fullName) || other.fullName == _this.fullName)&&(identical(other.url, _this.url) || other.url == _this.url)); } @override -int get hashCode => Object.hash(runtimeType,id,shortName,fullName,url); +int get hashCode { + final _this = this as License; + return Object.hash(runtimeType,_this.id,_this.shortName,_this.fullName,_this.url); +} @override String toString() { - return 'License(id: $id, shortName: $shortName, fullName: $fullName, url: $url)'; + final _this = this as License; + return 'License(id: ${_this.id}, shortName: ${_this.shortName}, fullName: ${_this.fullName}, url: ${_this.url})'; } @@ -63,7 +69,7 @@ class _$LicenseCopyWithImpl<$Res> /// Create a copy of License /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? shortName = null,Object? fullName = null,Object? url = null,}) { - return _then(_self.copyWith( + return _then(License( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int,shortName: null == shortName ? _self.shortName : shortName // ignore: cast_nullable_to_non_nullable as String,fullName: null == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable @@ -227,16 +233,18 @@ _$LicenseCopyWith<_License> get copyWith => __$LicenseCopyWithImpl<_License>(thi @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _License&&(identical(other.id, id) || other.id == id)&&(identical(other.shortName, shortName) || other.shortName == shortName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.url, url) || other.url == url)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _License&&(identical(other.id, id) || other.id == id)&&(identical(other.shortName, shortName) || other.shortName == shortName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.url, url) || other.url == url)); } @override -int get hashCode => Object.hash(runtimeType,id,shortName,fullName,url); +int get hashCode { + return Object.hash(runtimeType,id,shortName,fullName,url); +} @override String toString() { - return 'License(id: $id, shortName: $shortName, fullName: $fullName, url: $url)'; + return 'License(id: $id, shortName: $shortName, fullName: $fullName, url: $url)'; } diff --git a/lib/core/network/auth_credential.freezed.dart b/lib/core/network/auth_credential.freezed.dart index 507d8e21a..96d1ab230 100644 --- a/lib/core/network/auth_credential.freezed.dart +++ b/lib/core/network/auth_credential.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'auth_credential.dart'; @@ -9,6 +9,7 @@ part of 'auth_credential.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc @@ -25,16 +26,21 @@ $JwtCredentialCopyWith get copyWith => _$JwtCredentialCopyWithImp @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is JwtCredential&&(identical(other.accessToken, accessToken) || other.accessToken == accessToken)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)); + final _this = this as JwtCredential; + return identical(this, other) || (other.runtimeType == runtimeType&&other is JwtCredential&&(identical(other.accessToken, _this.accessToken) || other.accessToken == _this.accessToken)&&(identical(other.expiresAt, _this.expiresAt) || other.expiresAt == _this.expiresAt)); } @override -int get hashCode => Object.hash(runtimeType,accessToken,expiresAt); +int get hashCode { + final _this = this as JwtCredential; + return Object.hash(runtimeType,_this.accessToken,_this.expiresAt); +} @override String toString() { - return 'JwtCredential(accessToken: $accessToken, expiresAt: $expiresAt)'; + final _this = this as JwtCredential; + return 'JwtCredential(accessToken: ${_this.accessToken}, expiresAt: ${_this.expiresAt})'; } @@ -63,7 +69,7 @@ class _$JwtCredentialCopyWithImpl<$Res> /// Create a copy of JwtCredential /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? accessToken = null,Object? expiresAt = freezed,}) { - return _then(_self.copyWith( + return _then(JwtCredential( accessToken: null == accessToken ? _self.accessToken : accessToken // ignore: cast_nullable_to_non_nullable as String,expiresAt: freezed == expiresAt ? _self.expiresAt : expiresAt // ignore: cast_nullable_to_non_nullable as DateTime?, @@ -223,16 +229,18 @@ _$JwtCredentialCopyWith<_JwtCredential> get copyWith => __$JwtCredentialCopyWith @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _JwtCredential&&(identical(other.accessToken, accessToken) || other.accessToken == accessToken)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _JwtCredential&&(identical(other.accessToken, accessToken) || other.accessToken == accessToken)&&(identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt)); } @override -int get hashCode => Object.hash(runtimeType,accessToken,expiresAt); +int get hashCode { + return Object.hash(runtimeType,accessToken,expiresAt); +} @override String toString() { - return 'JwtCredential(accessToken: $accessToken, expiresAt: $expiresAt)'; + return 'JwtCredential(accessToken: $accessToken, expiresAt: $expiresAt)'; } diff --git a/lib/core/network/auth_state.freezed.dart b/lib/core/network/auth_state.freezed.dart index f2b2cb40d..8ffdd1b91 100644 --- a/lib/core/network/auth_state.freezed.dart +++ b/lib/core/network/auth_state.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'auth_state.dart'; @@ -9,6 +9,7 @@ part of 'auth_state.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc @@ -29,16 +30,21 @@ $AuthStateCopyWith get copyWith => _$AuthStateCopyWithImpl @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is AuthState&&(identical(other.status, status) || other.status == status)&&(identical(other.credential, credential) || other.credential == credential)&&(identical(other.serverUrl, serverUrl) || other.serverUrl == serverUrl)&&(identical(other.serverVersion, serverVersion) || other.serverVersion == serverVersion)&&(identical(other.applicationVersion, applicationVersion) || other.applicationVersion == applicationVersion)&&(identical(other.serverConfigWarning, serverConfigWarning) || other.serverConfigWarning == serverConfigWarning)&&(identical(other.sessionExpired, sessionExpired) || other.sessionExpired == sessionExpired)); + final _this = this as AuthState; + return identical(this, other) || (other.runtimeType == runtimeType&&other is AuthState&&(identical(other.status, _this.status) || other.status == _this.status)&&(identical(other.credential, _this.credential) || other.credential == _this.credential)&&(identical(other.serverUrl, _this.serverUrl) || other.serverUrl == _this.serverUrl)&&(identical(other.serverVersion, _this.serverVersion) || other.serverVersion == _this.serverVersion)&&(identical(other.applicationVersion, _this.applicationVersion) || other.applicationVersion == _this.applicationVersion)&&(identical(other.serverConfigWarning, _this.serverConfigWarning) || other.serverConfigWarning == _this.serverConfigWarning)&&(identical(other.sessionExpired, _this.sessionExpired) || other.sessionExpired == _this.sessionExpired)); } @override -int get hashCode => Object.hash(runtimeType,status,credential,serverUrl,serverVersion,applicationVersion,serverConfigWarning,sessionExpired); +int get hashCode { + final _this = this as AuthState; + return Object.hash(runtimeType,_this.status,_this.credential,_this.serverUrl,_this.serverVersion,_this.applicationVersion,_this.serverConfigWarning,_this.sessionExpired); +} @override String toString() { - return 'AuthState(status: $status, credential: $credential, serverUrl: $serverUrl, serverVersion: $serverVersion, applicationVersion: $applicationVersion, serverConfigWarning: $serverConfigWarning, sessionExpired: $sessionExpired)'; + final _this = this as AuthState; + return 'AuthState(status: ${_this.status}, credential: ${_this.credential}, serverUrl: ${_this.serverUrl}, serverVersion: ${_this.serverVersion}, applicationVersion: ${_this.applicationVersion}, serverConfigWarning: ${_this.serverConfigWarning}, sessionExpired: ${_this.sessionExpired})'; } @@ -67,7 +73,7 @@ class _$AuthStateCopyWithImpl<$Res> /// Create a copy of AuthState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? status = null,Object? credential = freezed,Object? serverUrl = freezed,Object? serverVersion = freezed,Object? applicationVersion = freezed,Object? serverConfigWarning = null,Object? sessionExpired = null,}) { - return _then(_self.copyWith( + return _then(AuthState( status: null == status ? _self.status : status // ignore: cast_nullable_to_non_nullable as AuthStatus,credential: freezed == credential ? _self.credential : credential // ignore: cast_nullable_to_non_nullable as JwtCredential?,serverUrl: freezed == serverUrl ? _self.serverUrl : serverUrl // ignore: cast_nullable_to_non_nullable @@ -247,16 +253,18 @@ _$AuthStateCopyWith<_AuthState> get copyWith => __$AuthStateCopyWithImpl<_AuthSt @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AuthState&&(identical(other.status, status) || other.status == status)&&(identical(other.credential, credential) || other.credential == credential)&&(identical(other.serverUrl, serverUrl) || other.serverUrl == serverUrl)&&(identical(other.serverVersion, serverVersion) || other.serverVersion == serverVersion)&&(identical(other.applicationVersion, applicationVersion) || other.applicationVersion == applicationVersion)&&(identical(other.serverConfigWarning, serverConfigWarning) || other.serverConfigWarning == serverConfigWarning)&&(identical(other.sessionExpired, sessionExpired) || other.sessionExpired == sessionExpired)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AuthState&&(identical(other.status, status) || other.status == status)&&(identical(other.credential, credential) || other.credential == credential)&&(identical(other.serverUrl, serverUrl) || other.serverUrl == serverUrl)&&(identical(other.serverVersion, serverVersion) || other.serverVersion == serverVersion)&&(identical(other.applicationVersion, applicationVersion) || other.applicationVersion == applicationVersion)&&(identical(other.serverConfigWarning, serverConfigWarning) || other.serverConfigWarning == serverConfigWarning)&&(identical(other.sessionExpired, sessionExpired) || other.sessionExpired == sessionExpired)); } @override -int get hashCode => Object.hash(runtimeType,status,credential,serverUrl,serverVersion,applicationVersion,serverConfigWarning,sessionExpired); +int get hashCode { + return Object.hash(runtimeType,status,credential,serverUrl,serverVersion,applicationVersion,serverConfigWarning,sessionExpired); +} @override String toString() { - return 'AuthState(status: $status, credential: $credential, serverUrl: $serverUrl, serverVersion: $serverVersion, applicationVersion: $applicationVersion, serverConfigWarning: $serverConfigWarning, sessionExpired: $sessionExpired)'; + return 'AuthState(status: $status, credential: $credential, serverUrl: $serverUrl, serverVersion: $serverVersion, applicationVersion: $applicationVersion, serverConfigWarning: $serverConfigWarning, sessionExpired: $sessionExpired)'; } diff --git a/lib/database/powersync/database.g.dart b/lib/database/powersync/database.g.dart index 2a08ffd6b..dbc1cc374 100644 --- a/lib/database/powersync/database.g.dart +++ b/lib/database/powersync/database.g.dart @@ -10799,7 +10799,7 @@ class $$LanguageTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$LanguageTableTable, Language>(table), $$LanguageTableTableReferences(db, table, e), ), ) @@ -11008,8 +11008,18 @@ class $$LicenseTableTableTableManager url: url, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$LicenseTableTable, License>(table), + BaseReferences<_$DriftPowersyncDatabase, $LicenseTableTable, License>( + db, + table, + e, + ), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -11191,8 +11201,18 @@ class $$UserProfileTableTableTableManager timeZone: timeZone, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$UserProfileTableTable, UserProfile>(table), + BaseReferences<_$DriftPowersyncDatabase, $UserProfileTableTable, UserProfile>( + db, + table, + e, + ), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -11417,7 +11437,9 @@ class $$ExerciseCategoryTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseCategoryTableTable, ExerciseCategory>( + table, + ), $$ExerciseCategoryTableTableReferences(db, table, e), ), ) @@ -12173,7 +12195,7 @@ class $$ExerciseTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseTableTable, ExerciseRow>(table), $$ExerciseTableTableReferences(db, table, e), ), ) @@ -12917,7 +12939,7 @@ class $$ExerciseTranslationTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseTranslationTableTable, ExerciseTranslationRow>(table), $$ExerciseTranslationTableTableReferences(db, table, e), ), ) @@ -13290,7 +13312,7 @@ class $$ExerciseAliasTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseAliasTableTable, Alias>(table), $$ExerciseAliasTableTableReferences(db, table, e), ), ) @@ -13597,7 +13619,7 @@ class $$ExerciseCommentTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseCommentTableTable, Comment>(table), $$ExerciseCommentTableTableReferences(db, table, e), ), ) @@ -13965,7 +13987,7 @@ class $$MuscleTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$MuscleTableTable, Muscle>(table), $$MuscleTableTableReferences(db, table, e), ), ) @@ -14340,7 +14362,9 @@ class $$ExerciseMuscleM2NTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseMuscleM2NTable, ExerciseMuscleM2NData>( + table, + ), $$ExerciseMuscleM2NTableReferences(db, table, e), ), ) @@ -14724,7 +14748,9 @@ class $$ExerciseSecondaryMuscleM2NTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseSecondaryMuscleM2NTable, ExerciseSecondaryMuscleM2NData>( + table, + ), $$ExerciseSecondaryMuscleM2NTableReferences(db, table, e), ), ) @@ -14998,7 +15024,7 @@ class $$EquipmentTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$EquipmentTableTable, Equipment>(table), $$EquipmentTableTableReferences(db, table, e), ), ) @@ -15354,7 +15380,7 @@ class $$ExerciseEquipmentM2NTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseEquipmentM2NTable, ExerciseEquipmentM2NData>(table), $$ExerciseEquipmentM2NTableReferences(db, table, e), ), ) @@ -15933,7 +15959,7 @@ class $$ExerciseImageTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseImageTableTable, ExerciseImage>(table), $$ExerciseImageTableTableReferences(db, table, e), ), ) @@ -16534,7 +16560,7 @@ class $$ExerciseVideoTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$ExerciseVideoTableTable, Video>(table), $$ExerciseVideoTableTableReferences(db, table, e), ), ) @@ -17068,7 +17094,7 @@ class $$MeasurementCategoryTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$MeasurementCategoryTableTable, MeasurementCategory>(table), $$MeasurementCategoryTableTableReferences(db, table, e), ), ) @@ -17481,7 +17507,9 @@ class $$MeasurementEntryTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$MeasurementEntryTableTable, MeasurementEntry>( + table, + ), $$MeasurementEntryTableTableReferences(db, table, e), ), ) @@ -17799,8 +17827,18 @@ class $$RoutineTableTableTableManager fitInWeek: fitInWeek, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$RoutineTableTable, Routine>(table), + BaseReferences<_$DriftPowersyncDatabase, $RoutineTableTable, Routine>( + db, + table, + e, + ), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -18204,8 +18242,18 @@ class $$WorkoutLogTableTableTableManager date: date, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$WorkoutLogTableTable, Log>(table), + BaseReferences<_$DriftPowersyncDatabase, $WorkoutLogTableTable, Log>( + db, + table, + e, + ), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -18512,8 +18560,18 @@ class $$WorkoutSessionTableTableTableManager timeEnd: timeEnd, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$WorkoutSessionTableTable, WorkoutSession>(table), + BaseReferences< + _$DriftPowersyncDatabase, + $WorkoutSessionTableTable, + WorkoutSession + >(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -18665,8 +18723,20 @@ class $$RoutineRepetitionUnitTableTableTableManager name: name, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$RoutineRepetitionUnitTableTable, RepetitionUnit>( + table, + ), + BaseReferences< + _$DriftPowersyncDatabase, + $RoutineRepetitionUnitTableTable, + RepetitionUnit + >(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -18814,8 +18884,18 @@ class $$RoutineWeightUnitTableTableTableManager name: name, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$RoutineWeightUnitTableTable, WeightUnit>(table), + BaseReferences< + _$DriftPowersyncDatabase, + $RoutineWeightUnitTableTable, + WeightUnit + >(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); @@ -19309,7 +19389,9 @@ class $$NutritionalPlanTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$NutritionalPlanTableTable, NutritionalPlan>( + table, + ), $$NutritionalPlanTableTableReferences(db, table, e), ), ) @@ -20182,7 +20264,7 @@ class $$IngredientTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$IngredientTableTable, Ingredient>(table), $$IngredientTableTableReferences(db, table, e), ), ) @@ -20762,7 +20844,9 @@ class $$IngredientImageTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$IngredientImageTableTable, IngredientImage>( + table, + ), $$IngredientImageTableTableReferences(db, table, e), ), ) @@ -21095,7 +21179,7 @@ class $$IngredientWeightUnitTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$IngredientWeightUnitTableTable, IngredientWeightUnit>(table), $$IngredientWeightUnitTableTableReferences(db, table, e), ), ) @@ -21476,7 +21560,7 @@ class $$MealTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$MealTableTable, Meal>(table), $$MealTableTableReferences(db, table, e), ), ) @@ -21902,7 +21986,7 @@ class $$MealItemTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$MealItemTableTable, MealItem>(table), $$MealItemTableTableReferences(db, table, e), ), ) @@ -22363,7 +22447,7 @@ class $$LogItemTableTableTableManager withReferenceMapper: (p0) => p0 .map( (e) => ( - e.readTable(table), + e.readTable<$LogItemTableTable, LogItem>(table), $$LogItemTableTableReferences(db, table, e), ), ) @@ -22599,8 +22683,18 @@ class $$GalleryImageTableTableTableManager description: description, rowid: rowid, ), - withReferenceMapper: (p0) => - p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable<$GalleryImageTableTable, GalleryImage>(table), + BaseReferences<_$DriftPowersyncDatabase, $GalleryImageTableTable, GalleryImage>( + db, + table, + e, + ), + ), + ) + .toList(), prefetchHooksCallback: null, ), ); diff --git a/lib/features/exercises/models/exercise_submission.freezed.dart b/lib/features/exercises/models/exercise_submission.freezed.dart index 37df1a9ec..0e175dd04 100644 --- a/lib/features/exercises/models/exercise_submission.freezed.dart +++ b/lib/features/exercises/models/exercise_submission.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'exercise_submission.dart'; @@ -9,6 +9,7 @@ part of 'exercise_submission.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; @@ -28,16 +29,21 @@ $ExerciseAliasSubmissionApiCopyWith get copyWith => @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseAliasSubmissionApi&&(identical(other.alias, alias) || other.alias == alias)); + final _this = this as ExerciseAliasSubmissionApi; + return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseAliasSubmissionApi&&(identical(other.alias, _this.alias) || other.alias == _this.alias)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,alias); +int get hashCode { + final _this = this as ExerciseAliasSubmissionApi; + return Object.hash(runtimeType,_this.alias); +} @override String toString() { - return 'ExerciseAliasSubmissionApi(alias: $alias)'; + final _this = this as ExerciseAliasSubmissionApi; + return 'ExerciseAliasSubmissionApi(alias: ${_this.alias})'; } @@ -66,7 +72,7 @@ class _$ExerciseAliasSubmissionApiCopyWithImpl<$Res> /// Create a copy of ExerciseAliasSubmissionApi /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? alias = null,}) { - return _then(_self.copyWith( + return _then(ExerciseAliasSubmissionApi( alias: null == alias ? _self.alias : alias // ignore: cast_nullable_to_non_nullable as String, )); @@ -221,16 +227,18 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseAliasSubmissionApi&&(identical(other.alias, alias) || other.alias == alias)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseAliasSubmissionApi&&(identical(other.alias, alias) || other.alias == alias)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,alias); +int get hashCode { + return Object.hash(runtimeType,alias); +} @override String toString() { - return 'ExerciseAliasSubmissionApi(alias: $alias)'; + return 'ExerciseAliasSubmissionApi(alias: $alias)'; } @@ -285,16 +293,21 @@ $ExerciseCommentSubmissionApiCopyWith get copyWith @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseCommentSubmissionApi&&(identical(other.alias, alias) || other.alias == alias)); + final _this = this as ExerciseCommentSubmissionApi; + return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseCommentSubmissionApi&&(identical(other.alias, _this.alias) || other.alias == _this.alias)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,alias); +int get hashCode { + final _this = this as ExerciseCommentSubmissionApi; + return Object.hash(runtimeType,_this.alias); +} @override String toString() { - return 'ExerciseCommentSubmissionApi(alias: $alias)'; + final _this = this as ExerciseCommentSubmissionApi; + return 'ExerciseCommentSubmissionApi(alias: ${_this.alias})'; } @@ -323,7 +336,7 @@ class _$ExerciseCommentSubmissionApiCopyWithImpl<$Res> /// Create a copy of ExerciseCommentSubmissionApi /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? alias = null,}) { - return _then(_self.copyWith( + return _then(ExerciseCommentSubmissionApi( alias: null == alias ? _self.alias : alias // ignore: cast_nullable_to_non_nullable as String, )); @@ -478,16 +491,18 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseCommentSubmissionApi&&(identical(other.alias, alias) || other.alias == alias)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseCommentSubmissionApi&&(identical(other.alias, alias) || other.alias == alias)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,alias); +int get hashCode { + return Object.hash(runtimeType,alias); +} @override String toString() { - return 'ExerciseCommentSubmissionApi(alias: $alias)'; + return 'ExerciseCommentSubmissionApi(alias: $alias)'; } @@ -542,16 +557,21 @@ $ExerciseTranslationSubmissionApiCopyWith get @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseTranslationSubmissionApi&&(identical(other.name, name) || other.name == name)&&(identical(other.descriptionSource, descriptionSource) || other.descriptionSource == descriptionSource)&&(identical(other.language, language) || other.language == language)&&(identical(other.author, author) || other.author == author)&&const DeepCollectionEquality().equals(other.aliases, aliases)&&const DeepCollectionEquality().equals(other.comments, comments)); + final _this = this as ExerciseTranslationSubmissionApi; + return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseTranslationSubmissionApi&&(identical(other.name, _this.name) || other.name == _this.name)&&(identical(other.descriptionSource, _this.descriptionSource) || other.descriptionSource == _this.descriptionSource)&&(identical(other.language, _this.language) || other.language == _this.language)&&(identical(other.author, _this.author) || other.author == _this.author)&&const DeepCollectionEquality().equals(other.aliases, _this.aliases)&&const DeepCollectionEquality().equals(other.comments, _this.comments)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,name,descriptionSource,language,author,const DeepCollectionEquality().hash(aliases),const DeepCollectionEquality().hash(comments)); +int get hashCode { + final _this = this as ExerciseTranslationSubmissionApi; + return Object.hash(runtimeType,_this.name,_this.descriptionSource,_this.language,_this.author,const DeepCollectionEquality().hash(_this.aliases),const DeepCollectionEquality().hash(_this.comments)); +} @override String toString() { - return 'ExerciseTranslationSubmissionApi(name: $name, descriptionSource: $descriptionSource, language: $language, author: $author, aliases: $aliases, comments: $comments)'; + final _this = this as ExerciseTranslationSubmissionApi; + return 'ExerciseTranslationSubmissionApi(name: ${_this.name}, descriptionSource: ${_this.descriptionSource}, language: ${_this.language}, author: ${_this.author}, aliases: ${_this.aliases}, comments: ${_this.comments})'; } @@ -580,7 +600,7 @@ class _$ExerciseTranslationSubmissionApiCopyWithImpl<$Res> /// Create a copy of ExerciseTranslationSubmissionApi /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? name = null,Object? descriptionSource = null,Object? language = null,Object? author = null,Object? aliases = null,Object? comments = null,}) { - return _then(_self.copyWith( + return _then(ExerciseTranslationSubmissionApi( name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String,descriptionSource: null == descriptionSource ? _self.descriptionSource : descriptionSource // ignore: cast_nullable_to_non_nullable as String,language: null == language ? _self.language : language // ignore: cast_nullable_to_non_nullable @@ -722,7 +742,7 @@ return $default(_that.name,_that.descriptionSource,_that.language,_that.author,_ @JsonSerializable() class _ExerciseTranslationSubmissionApi implements ExerciseTranslationSubmissionApi { - const _ExerciseTranslationSubmissionApi({required this.name, @JsonKey(name: 'description_source') required this.descriptionSource, required this.language, @JsonKey(name: 'license_author') required this.author, final List aliases = const [], final List comments = const []}): _aliases = aliases,_comments = comments; + const _ExerciseTranslationSubmissionApi({required this.name, @JsonKey(name: 'description_source') required this.descriptionSource, required this.language, @JsonKey(name: 'license_author') required this.author, List aliases = const [], List comments = const []}): _aliases = aliases,_comments = comments; factory _ExerciseTranslationSubmissionApi.fromJson(Map json) => _$ExerciseTranslationSubmissionApiFromJson(json); @override final String name; @@ -757,16 +777,18 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseTranslationSubmissionApi&&(identical(other.name, name) || other.name == name)&&(identical(other.descriptionSource, descriptionSource) || other.descriptionSource == descriptionSource)&&(identical(other.language, language) || other.language == language)&&(identical(other.author, author) || other.author == author)&&const DeepCollectionEquality().equals(other._aliases, _aliases)&&const DeepCollectionEquality().equals(other._comments, _comments)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseTranslationSubmissionApi&&(identical(other.name, name) || other.name == name)&&(identical(other.descriptionSource, descriptionSource) || other.descriptionSource == descriptionSource)&&(identical(other.language, language) || other.language == language)&&(identical(other.author, author) || other.author == author)&&const DeepCollectionEquality().equals(other.aliases, _aliases)&&const DeepCollectionEquality().equals(other.comments, _comments)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,name,descriptionSource,language,author,const DeepCollectionEquality().hash(_aliases),const DeepCollectionEquality().hash(_comments)); +int get hashCode { + return Object.hash(runtimeType,name,descriptionSource,language,author,const DeepCollectionEquality().hash(_aliases),const DeepCollectionEquality().hash(_comments)); +} @override String toString() { - return 'ExerciseTranslationSubmissionApi(name: $name, descriptionSource: $descriptionSource, language: $language, author: $author, aliases: $aliases, comments: $comments)'; + return 'ExerciseTranslationSubmissionApi(name: $name, descriptionSource: $descriptionSource, language: $language, author: $author, aliases: $aliases, comments: $comments)'; } @@ -827,16 +849,21 @@ $ExerciseSubmissionApiCopyWith get copyWith => _$Exercise @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseSubmissionApi&&(identical(other.category, category) || other.category == category)&&const DeepCollectionEquality().equals(other.muscles, muscles)&&const DeepCollectionEquality().equals(other.musclesSecondary, musclesSecondary)&&const DeepCollectionEquality().equals(other.equipment, equipment)&&(identical(other.author, author) || other.author == author)&&(identical(other.variationGroup, variationGroup) || other.variationGroup == variationGroup)&&(identical(other.variationConnectTo, variationConnectTo) || other.variationConnectTo == variationConnectTo)&&const DeepCollectionEquality().equals(other.translations, translations)); + final _this = this as ExerciseSubmissionApi; + return identical(this, other) || (other.runtimeType == runtimeType&&other is ExerciseSubmissionApi&&(identical(other.category, _this.category) || other.category == _this.category)&&const DeepCollectionEquality().equals(other.muscles, _this.muscles)&&const DeepCollectionEquality().equals(other.musclesSecondary, _this.musclesSecondary)&&const DeepCollectionEquality().equals(other.equipment, _this.equipment)&&(identical(other.author, _this.author) || other.author == _this.author)&&(identical(other.variationGroup, _this.variationGroup) || other.variationGroup == _this.variationGroup)&&(identical(other.variationConnectTo, _this.variationConnectTo) || other.variationConnectTo == _this.variationConnectTo)&&const DeepCollectionEquality().equals(other.translations, _this.translations)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,category,const DeepCollectionEquality().hash(muscles),const DeepCollectionEquality().hash(musclesSecondary),const DeepCollectionEquality().hash(equipment),author,variationGroup,variationConnectTo,const DeepCollectionEquality().hash(translations)); +int get hashCode { + final _this = this as ExerciseSubmissionApi; + return Object.hash(runtimeType,_this.category,const DeepCollectionEquality().hash(_this.muscles),const DeepCollectionEquality().hash(_this.musclesSecondary),const DeepCollectionEquality().hash(_this.equipment),_this.author,_this.variationGroup,_this.variationConnectTo,const DeepCollectionEquality().hash(_this.translations)); +} @override String toString() { - return 'ExerciseSubmissionApi(category: $category, muscles: $muscles, musclesSecondary: $musclesSecondary, equipment: $equipment, author: $author, variationGroup: $variationGroup, variationConnectTo: $variationConnectTo, translations: $translations)'; + final _this = this as ExerciseSubmissionApi; + return 'ExerciseSubmissionApi(category: ${_this.category}, muscles: ${_this.muscles}, musclesSecondary: ${_this.musclesSecondary}, equipment: ${_this.equipment}, author: ${_this.author}, variationGroup: ${_this.variationGroup}, variationConnectTo: ${_this.variationConnectTo}, translations: ${_this.translations})'; } @@ -865,7 +892,7 @@ class _$ExerciseSubmissionApiCopyWithImpl<$Res> /// Create a copy of ExerciseSubmissionApi /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? category = null,Object? muscles = null,Object? musclesSecondary = null,Object? equipment = null,Object? author = null,Object? variationGroup = freezed,Object? variationConnectTo = freezed,Object? translations = null,}) { - return _then(_self.copyWith( + return _then(ExerciseSubmissionApi( category: null == category ? _self.category : category // ignore: cast_nullable_to_non_nullable as int,muscles: null == muscles ? _self.muscles : muscles // ignore: cast_nullable_to_non_nullable as List,musclesSecondary: null == musclesSecondary ? _self.musclesSecondary : musclesSecondary // ignore: cast_nullable_to_non_nullable @@ -1009,7 +1036,7 @@ return $default(_that.category,_that.muscles,_that.musclesSecondary,_that.equipm @JsonSerializable() class _ExerciseSubmissionApi implements ExerciseSubmissionApi { - const _ExerciseSubmissionApi({required this.category, required final List muscles, @JsonKey(name: 'muscles_secondary') required final List musclesSecondary, required final List equipment, @JsonKey(name: 'license_author') required this.author, @JsonKey(includeToJson: true, name: 'variation_group') this.variationGroup, @JsonKey(includeToJson: true, name: 'variations_connect_to') this.variationConnectTo, required final List translations}): _muscles = muscles,_musclesSecondary = musclesSecondary,_equipment = equipment,_translations = translations; + const _ExerciseSubmissionApi({required this.category, required List muscles, @JsonKey(name: 'muscles_secondary') required List musclesSecondary, required List equipment, @JsonKey(name: 'license_author') required this.author, @JsonKey(includeToJson: true, name: 'variation_group') this.variationGroup, @JsonKey(includeToJson: true, name: 'variations_connect_to') this.variationConnectTo, required List translations}): _muscles = muscles,_musclesSecondary = musclesSecondary,_equipment = equipment,_translations = translations; factory _ExerciseSubmissionApi.fromJson(Map json) => _$ExerciseSubmissionApiFromJson(json); @override final int category; @@ -1059,16 +1086,18 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseSubmissionApi&&(identical(other.category, category) || other.category == category)&&const DeepCollectionEquality().equals(other._muscles, _muscles)&&const DeepCollectionEquality().equals(other._musclesSecondary, _musclesSecondary)&&const DeepCollectionEquality().equals(other._equipment, _equipment)&&(identical(other.author, author) || other.author == author)&&(identical(other.variationGroup, variationGroup) || other.variationGroup == variationGroup)&&(identical(other.variationConnectTo, variationConnectTo) || other.variationConnectTo == variationConnectTo)&&const DeepCollectionEquality().equals(other._translations, _translations)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ExerciseSubmissionApi&&(identical(other.category, category) || other.category == category)&&const DeepCollectionEquality().equals(other.muscles, _muscles)&&const DeepCollectionEquality().equals(other.musclesSecondary, _musclesSecondary)&&const DeepCollectionEquality().equals(other.equipment, _equipment)&&(identical(other.author, author) || other.author == author)&&(identical(other.variationGroup, variationGroup) || other.variationGroup == variationGroup)&&(identical(other.variationConnectTo, variationConnectTo) || other.variationConnectTo == variationConnectTo)&&const DeepCollectionEquality().equals(other.translations, _translations)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,category,const DeepCollectionEquality().hash(_muscles),const DeepCollectionEquality().hash(_musclesSecondary),const DeepCollectionEquality().hash(_equipment),author,variationGroup,variationConnectTo,const DeepCollectionEquality().hash(_translations)); +int get hashCode { + return Object.hash(runtimeType,category,const DeepCollectionEquality().hash(_muscles),const DeepCollectionEquality().hash(_musclesSecondary),const DeepCollectionEquality().hash(_equipment),author,variationGroup,variationConnectTo,const DeepCollectionEquality().hash(_translations)); +} @override String toString() { - return 'ExerciseSubmissionApi(category: $category, muscles: $muscles, musclesSecondary: $musclesSecondary, equipment: $equipment, author: $author, variationGroup: $variationGroup, variationConnectTo: $variationConnectTo, translations: $translations)'; + return 'ExerciseSubmissionApi(category: $category, muscles: $muscles, musclesSecondary: $musclesSecondary, equipment: $equipment, author: $author, variationGroup: $variationGroup, variationConnectTo: $variationConnectTo, translations: $translations)'; } diff --git a/lib/features/exercises/providers/add_exercise_state.freezed.dart b/lib/features/exercises/providers/add_exercise_state.freezed.dart index 22b7429df..922be72d0 100644 --- a/lib/features/exercises/providers/add_exercise_state.freezed.dart +++ b/lib/features/exercises/providers/add_exercise_state.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'add_exercise_state.dart'; @@ -9,6 +9,7 @@ part of 'add_exercise_state.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc @@ -25,16 +26,21 @@ $AddExerciseStateCopyWith get copyWith => _$AddExerciseStateCo @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is AddExerciseState&&(identical(other.author, author) || other.author == author)&&(identical(other.exerciseNameEn, exerciseNameEn) || other.exerciseNameEn == exerciseNameEn)&&(identical(other.exerciseNameTrans, exerciseNameTrans) || other.exerciseNameTrans == exerciseNameTrans)&&(identical(other.descriptionEn, descriptionEn) || other.descriptionEn == descriptionEn)&&(identical(other.descriptionTrans, descriptionTrans) || other.descriptionTrans == descriptionTrans)&&(identical(other.variationGroup, variationGroup) || other.variationGroup == variationGroup)&&(identical(other.variationConnectToExercise, variationConnectToExercise) || other.variationConnectToExercise == variationConnectToExercise)&&(identical(other.languageEn, languageEn) || other.languageEn == languageEn)&&(identical(other.languageTranslation, languageTranslation) || other.languageTranslation == languageTranslation)&&const DeepCollectionEquality().equals(other.alternateNamesEn, alternateNamesEn)&&const DeepCollectionEquality().equals(other.alternateNamesTrans, alternateNamesTrans)&&(identical(other.category, category) || other.category == category)&&const DeepCollectionEquality().equals(other.equipment, equipment)&&const DeepCollectionEquality().equals(other.primaryMuscles, primaryMuscles)&&const DeepCollectionEquality().equals(other.secondaryMuscles, secondaryMuscles)&&const DeepCollectionEquality().equals(other.exerciseImages, exerciseImages)); + final _this = this as AddExerciseState; + return identical(this, other) || (other.runtimeType == runtimeType&&other is AddExerciseState&&(identical(other.author, _this.author) || other.author == _this.author)&&(identical(other.exerciseNameEn, _this.exerciseNameEn) || other.exerciseNameEn == _this.exerciseNameEn)&&(identical(other.exerciseNameTrans, _this.exerciseNameTrans) || other.exerciseNameTrans == _this.exerciseNameTrans)&&(identical(other.descriptionEn, _this.descriptionEn) || other.descriptionEn == _this.descriptionEn)&&(identical(other.descriptionTrans, _this.descriptionTrans) || other.descriptionTrans == _this.descriptionTrans)&&(identical(other.variationGroup, _this.variationGroup) || other.variationGroup == _this.variationGroup)&&(identical(other.variationConnectToExercise, _this.variationConnectToExercise) || other.variationConnectToExercise == _this.variationConnectToExercise)&&(identical(other.languageEn, _this.languageEn) || other.languageEn == _this.languageEn)&&(identical(other.languageTranslation, _this.languageTranslation) || other.languageTranslation == _this.languageTranslation)&&const DeepCollectionEquality().equals(other.alternateNamesEn, _this.alternateNamesEn)&&const DeepCollectionEquality().equals(other.alternateNamesTrans, _this.alternateNamesTrans)&&(identical(other.category, _this.category) || other.category == _this.category)&&const DeepCollectionEquality().equals(other.equipment, _this.equipment)&&const DeepCollectionEquality().equals(other.primaryMuscles, _this.primaryMuscles)&&const DeepCollectionEquality().equals(other.secondaryMuscles, _this.secondaryMuscles)&&const DeepCollectionEquality().equals(other.exerciseImages, _this.exerciseImages)); } @override -int get hashCode => Object.hash(runtimeType,author,exerciseNameEn,exerciseNameTrans,descriptionEn,descriptionTrans,variationGroup,variationConnectToExercise,languageEn,languageTranslation,const DeepCollectionEquality().hash(alternateNamesEn),const DeepCollectionEquality().hash(alternateNamesTrans),category,const DeepCollectionEquality().hash(equipment),const DeepCollectionEquality().hash(primaryMuscles),const DeepCollectionEquality().hash(secondaryMuscles),const DeepCollectionEquality().hash(exerciseImages)); +int get hashCode { + final _this = this as AddExerciseState; + return Object.hash(runtimeType,_this.author,_this.exerciseNameEn,_this.exerciseNameTrans,_this.descriptionEn,_this.descriptionTrans,_this.variationGroup,_this.variationConnectToExercise,_this.languageEn,_this.languageTranslation,const DeepCollectionEquality().hash(_this.alternateNamesEn),const DeepCollectionEquality().hash(_this.alternateNamesTrans),_this.category,const DeepCollectionEquality().hash(_this.equipment),const DeepCollectionEquality().hash(_this.primaryMuscles),const DeepCollectionEquality().hash(_this.secondaryMuscles),const DeepCollectionEquality().hash(_this.exerciseImages)); +} @override String toString() { - return 'AddExerciseState(author: $author, exerciseNameEn: $exerciseNameEn, exerciseNameTrans: $exerciseNameTrans, descriptionEn: $descriptionEn, descriptionTrans: $descriptionTrans, variationGroup: $variationGroup, variationConnectToExercise: $variationConnectToExercise, languageEn: $languageEn, languageTranslation: $languageTranslation, alternateNamesEn: $alternateNamesEn, alternateNamesTrans: $alternateNamesTrans, category: $category, equipment: $equipment, primaryMuscles: $primaryMuscles, secondaryMuscles: $secondaryMuscles, exerciseImages: $exerciseImages)'; + final _this = this as AddExerciseState; + return 'AddExerciseState(author: ${_this.author}, exerciseNameEn: ${_this.exerciseNameEn}, exerciseNameTrans: ${_this.exerciseNameTrans}, descriptionEn: ${_this.descriptionEn}, descriptionTrans: ${_this.descriptionTrans}, variationGroup: ${_this.variationGroup}, variationConnectToExercise: ${_this.variationConnectToExercise}, languageEn: ${_this.languageEn}, languageTranslation: ${_this.languageTranslation}, alternateNamesEn: ${_this.alternateNamesEn}, alternateNamesTrans: ${_this.alternateNamesTrans}, category: ${_this.category}, equipment: ${_this.equipment}, primaryMuscles: ${_this.primaryMuscles}, secondaryMuscles: ${_this.secondaryMuscles}, exerciseImages: ${_this.exerciseImages})'; } @@ -63,7 +69,7 @@ class _$AddExerciseStateCopyWithImpl<$Res> /// Create a copy of AddExerciseState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? author = null,Object? exerciseNameEn = freezed,Object? exerciseNameTrans = freezed,Object? descriptionEn = freezed,Object? descriptionTrans = freezed,Object? variationGroup = freezed,Object? variationConnectToExercise = freezed,Object? languageEn = freezed,Object? languageTranslation = freezed,Object? alternateNamesEn = null,Object? alternateNamesTrans = null,Object? category = freezed,Object? equipment = null,Object? primaryMuscles = null,Object? secondaryMuscles = null,Object? exerciseImages = null,}) { - return _then(_self.copyWith( + return _then(AddExerciseState( author: null == author ? _self.author : author // ignore: cast_nullable_to_non_nullable as String,exerciseNameEn: freezed == exerciseNameEn ? _self.exerciseNameEn : exerciseNameEn // ignore: cast_nullable_to_non_nullable as String?,exerciseNameTrans: freezed == exerciseNameTrans ? _self.exerciseNameTrans : exerciseNameTrans // ignore: cast_nullable_to_non_nullable @@ -215,7 +221,7 @@ return $default(_that.author,_that.exerciseNameEn,_that.exerciseNameTrans,_that. class _AddExerciseState extends AddExerciseState { - const _AddExerciseState({this.author = '', this.exerciseNameEn, this.exerciseNameTrans, this.descriptionEn, this.descriptionTrans, this.variationGroup, this.variationConnectToExercise, this.languageEn, this.languageTranslation, final List alternateNamesEn = const [], final List alternateNamesTrans = const [], this.category, final List equipment = const [], final List primaryMuscles = const [], final List secondaryMuscles = const [], final List exerciseImages = const []}): _alternateNamesEn = alternateNamesEn,_alternateNamesTrans = alternateNamesTrans,_equipment = equipment,_primaryMuscles = primaryMuscles,_secondaryMuscles = secondaryMuscles,_exerciseImages = exerciseImages,super._(); + const _AddExerciseState({this.author = '', this.exerciseNameEn, this.exerciseNameTrans, this.descriptionEn, this.descriptionTrans, this.variationGroup, this.variationConnectToExercise, this.languageEn, this.languageTranslation, List alternateNamesEn = const [], List alternateNamesTrans = const [], this.category, List equipment = const [], List primaryMuscles = const [], List secondaryMuscles = const [], List exerciseImages = const []}): _alternateNamesEn = alternateNamesEn,_alternateNamesTrans = alternateNamesTrans,_equipment = equipment,_primaryMuscles = primaryMuscles,_secondaryMuscles = secondaryMuscles,_exerciseImages = exerciseImages,super._(); @override@JsonKey() final String author; @@ -281,16 +287,18 @@ _$AddExerciseStateCopyWith<_AddExerciseState> get copyWith => __$AddExerciseStat @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AddExerciseState&&(identical(other.author, author) || other.author == author)&&(identical(other.exerciseNameEn, exerciseNameEn) || other.exerciseNameEn == exerciseNameEn)&&(identical(other.exerciseNameTrans, exerciseNameTrans) || other.exerciseNameTrans == exerciseNameTrans)&&(identical(other.descriptionEn, descriptionEn) || other.descriptionEn == descriptionEn)&&(identical(other.descriptionTrans, descriptionTrans) || other.descriptionTrans == descriptionTrans)&&(identical(other.variationGroup, variationGroup) || other.variationGroup == variationGroup)&&(identical(other.variationConnectToExercise, variationConnectToExercise) || other.variationConnectToExercise == variationConnectToExercise)&&(identical(other.languageEn, languageEn) || other.languageEn == languageEn)&&(identical(other.languageTranslation, languageTranslation) || other.languageTranslation == languageTranslation)&&const DeepCollectionEquality().equals(other._alternateNamesEn, _alternateNamesEn)&&const DeepCollectionEquality().equals(other._alternateNamesTrans, _alternateNamesTrans)&&(identical(other.category, category) || other.category == category)&&const DeepCollectionEquality().equals(other._equipment, _equipment)&&const DeepCollectionEquality().equals(other._primaryMuscles, _primaryMuscles)&&const DeepCollectionEquality().equals(other._secondaryMuscles, _secondaryMuscles)&&const DeepCollectionEquality().equals(other._exerciseImages, _exerciseImages)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AddExerciseState&&(identical(other.author, author) || other.author == author)&&(identical(other.exerciseNameEn, exerciseNameEn) || other.exerciseNameEn == exerciseNameEn)&&(identical(other.exerciseNameTrans, exerciseNameTrans) || other.exerciseNameTrans == exerciseNameTrans)&&(identical(other.descriptionEn, descriptionEn) || other.descriptionEn == descriptionEn)&&(identical(other.descriptionTrans, descriptionTrans) || other.descriptionTrans == descriptionTrans)&&(identical(other.variationGroup, variationGroup) || other.variationGroup == variationGroup)&&(identical(other.variationConnectToExercise, variationConnectToExercise) || other.variationConnectToExercise == variationConnectToExercise)&&(identical(other.languageEn, languageEn) || other.languageEn == languageEn)&&(identical(other.languageTranslation, languageTranslation) || other.languageTranslation == languageTranslation)&&const DeepCollectionEquality().equals(other.alternateNamesEn, _alternateNamesEn)&&const DeepCollectionEquality().equals(other.alternateNamesTrans, _alternateNamesTrans)&&(identical(other.category, category) || other.category == category)&&const DeepCollectionEquality().equals(other.equipment, _equipment)&&const DeepCollectionEquality().equals(other.primaryMuscles, _primaryMuscles)&&const DeepCollectionEquality().equals(other.secondaryMuscles, _secondaryMuscles)&&const DeepCollectionEquality().equals(other.exerciseImages, _exerciseImages)); } @override -int get hashCode => Object.hash(runtimeType,author,exerciseNameEn,exerciseNameTrans,descriptionEn,descriptionTrans,variationGroup,variationConnectToExercise,languageEn,languageTranslation,const DeepCollectionEquality().hash(_alternateNamesEn),const DeepCollectionEquality().hash(_alternateNamesTrans),category,const DeepCollectionEquality().hash(_equipment),const DeepCollectionEquality().hash(_primaryMuscles),const DeepCollectionEquality().hash(_secondaryMuscles),const DeepCollectionEquality().hash(_exerciseImages)); +int get hashCode { + return Object.hash(runtimeType,author,exerciseNameEn,exerciseNameTrans,descriptionEn,descriptionTrans,variationGroup,variationConnectToExercise,languageEn,languageTranslation,const DeepCollectionEquality().hash(_alternateNamesEn),const DeepCollectionEquality().hash(_alternateNamesTrans),category,const DeepCollectionEquality().hash(_equipment),const DeepCollectionEquality().hash(_primaryMuscles),const DeepCollectionEquality().hash(_secondaryMuscles),const DeepCollectionEquality().hash(_exerciseImages)); +} @override String toString() { - return 'AddExerciseState(author: $author, exerciseNameEn: $exerciseNameEn, exerciseNameTrans: $exerciseNameTrans, descriptionEn: $descriptionEn, descriptionTrans: $descriptionTrans, variationGroup: $variationGroup, variationConnectToExercise: $variationConnectToExercise, languageEn: $languageEn, languageTranslation: $languageTranslation, alternateNamesEn: $alternateNamesEn, alternateNamesTrans: $alternateNamesTrans, category: $category, equipment: $equipment, primaryMuscles: $primaryMuscles, secondaryMuscles: $secondaryMuscles, exerciseImages: $exerciseImages)'; + return 'AddExerciseState(author: $author, exerciseNameEn: $exerciseNameEn, exerciseNameTrans: $exerciseNameTrans, descriptionEn: $descriptionEn, descriptionTrans: $descriptionTrans, variationGroup: $variationGroup, variationConnectToExercise: $variationConnectToExercise, languageEn: $languageEn, languageTranslation: $languageTranslation, alternateNamesEn: $alternateNamesEn, alternateNamesTrans: $alternateNamesTrans, category: $category, equipment: $equipment, primaryMuscles: $primaryMuscles, secondaryMuscles: $secondaryMuscles, exerciseImages: $exerciseImages)'; } diff --git a/lib/features/health/providers/health_sync.freezed.dart b/lib/features/health/providers/health_sync.freezed.dart index 3d4b50290..d4badd483 100644 --- a/lib/features/health/providers/health_sync.freezed.dart +++ b/lib/features/health/providers/health_sync.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'health_sync.dart'; @@ -9,6 +9,7 @@ part of 'health_sync.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc @@ -29,16 +30,21 @@ $HealthSyncStateCopyWith get copyWith => _$HealthSyncStateCopyW @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is HealthSyncState&&(identical(other.isEnabled, isEnabled) || other.isEnabled == isEnabled)&&(identical(other.isSyncing, isSyncing) || other.isSyncing == isSyncing)&&(identical(other.lastSyncCount, lastSyncCount) || other.lastSyncCount == lastSyncCount)&&(identical(other.lastSyncTime, lastSyncTime) || other.lastSyncTime == lastSyncTime)&&(identical(other.issue, issue) || other.issue == issue)&&(identical(other.progress, progress) || other.progress == progress)); + final _this = this as HealthSyncState; + return identical(this, other) || (other.runtimeType == runtimeType&&other is HealthSyncState&&(identical(other.isEnabled, _this.isEnabled) || other.isEnabled == _this.isEnabled)&&(identical(other.isSyncing, _this.isSyncing) || other.isSyncing == _this.isSyncing)&&(identical(other.lastSyncCount, _this.lastSyncCount) || other.lastSyncCount == _this.lastSyncCount)&&(identical(other.lastSyncTime, _this.lastSyncTime) || other.lastSyncTime == _this.lastSyncTime)&&(identical(other.issue, _this.issue) || other.issue == _this.issue)&&(identical(other.progress, _this.progress) || other.progress == _this.progress)); } @override -int get hashCode => Object.hash(runtimeType,isEnabled,isSyncing,lastSyncCount,lastSyncTime,issue,progress); +int get hashCode { + final _this = this as HealthSyncState; + return Object.hash(runtimeType,_this.isEnabled,_this.isSyncing,_this.lastSyncCount,_this.lastSyncTime,_this.issue,_this.progress); +} @override String toString() { - return 'HealthSyncState(isEnabled: $isEnabled, isSyncing: $isSyncing, lastSyncCount: $lastSyncCount, lastSyncTime: $lastSyncTime, issue: $issue, progress: $progress)'; + final _this = this as HealthSyncState; + return 'HealthSyncState(isEnabled: ${_this.isEnabled}, isSyncing: ${_this.isSyncing}, lastSyncCount: ${_this.lastSyncCount}, lastSyncTime: ${_this.lastSyncTime}, issue: ${_this.issue}, progress: ${_this.progress})'; } @@ -67,7 +73,7 @@ class _$HealthSyncStateCopyWithImpl<$Res> /// Create a copy of HealthSyncState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? isEnabled = null,Object? isSyncing = null,Object? lastSyncCount = null,Object? lastSyncTime = freezed,Object? issue = freezed,Object? progress = freezed,}) { - return _then(_self.copyWith( + return _then(HealthSyncState( isEnabled: null == isEnabled ? _self.isEnabled : isEnabled // ignore: cast_nullable_to_non_nullable as bool,isSyncing: null == isSyncing ? _self.isSyncing : isSyncing // ignore: cast_nullable_to_non_nullable as bool,lastSyncCount: null == lastSyncCount ? _self.lastSyncCount : lastSyncCount // ignore: cast_nullable_to_non_nullable @@ -233,16 +239,18 @@ _$HealthSyncStateCopyWith<_HealthSyncState> get copyWith => __$HealthSyncStateCo @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _HealthSyncState&&(identical(other.isEnabled, isEnabled) || other.isEnabled == isEnabled)&&(identical(other.isSyncing, isSyncing) || other.isSyncing == isSyncing)&&(identical(other.lastSyncCount, lastSyncCount) || other.lastSyncCount == lastSyncCount)&&(identical(other.lastSyncTime, lastSyncTime) || other.lastSyncTime == lastSyncTime)&&(identical(other.issue, issue) || other.issue == issue)&&(identical(other.progress, progress) || other.progress == progress)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _HealthSyncState&&(identical(other.isEnabled, isEnabled) || other.isEnabled == isEnabled)&&(identical(other.isSyncing, isSyncing) || other.isSyncing == isSyncing)&&(identical(other.lastSyncCount, lastSyncCount) || other.lastSyncCount == lastSyncCount)&&(identical(other.lastSyncTime, lastSyncTime) || other.lastSyncTime == lastSyncTime)&&(identical(other.issue, issue) || other.issue == issue)&&(identical(other.progress, progress) || other.progress == progress)); } @override -int get hashCode => Object.hash(runtimeType,isEnabled,isSyncing,lastSyncCount,lastSyncTime,issue,progress); +int get hashCode { + return Object.hash(runtimeType,isEnabled,isSyncing,lastSyncCount,lastSyncTime,issue,progress); +} @override String toString() { - return 'HealthSyncState(isEnabled: $isEnabled, isSyncing: $isSyncing, lastSyncCount: $lastSyncCount, lastSyncTime: $lastSyncTime, issue: $issue, progress: $progress)'; + return 'HealthSyncState(isEnabled: $isEnabled, isSyncing: $isSyncing, lastSyncCount: $lastSyncCount, lastSyncTime: $lastSyncTime, issue: $issue, progress: $progress)'; } diff --git a/lib/features/measurements/models/measurement_category.dart b/lib/features/measurements/models/measurement_category.dart index 623f7a9ad..658da2e43 100644 --- a/lib/features/measurements/models/measurement_category.dart +++ b/lib/features/measurements/models/measurement_category.dart @@ -530,23 +530,18 @@ class MeasurementCategory with _$MeasurementCategory { static const maxUnitChars = 30; /// Client-generated UUID, is `null` only before the first persist - @override final String? id; - @override final String name; - @override final String unit; /// Drives the health-platform mapping (and, later, default unit/aggregation/ /// chart). [MetricType.custom] for plain user-created categories. - @override final MetricType metricType; /// Chart the user picked for this category, [ChartType.auto] (the server's /// null) for the one derived from [metricType]. - @override final ChartType chartType; /// Taste-level chart settings, read through [chartSettings]. @@ -555,39 +550,32 @@ class MeasurementCategory with _$MeasurementCategory { /// before the column existed reads. Keys this release does not know are /// kept: another client may have written them, and a write from here /// replaces the whole object. - @override final Map? chartConfig; /// Multi-value groups (e.g. blood pressure): id of the parent category, one /// child per component. Max. one level of nesting; only leaf categories /// (no children) carry entries. - @override final String? parentId; /// Position in the category list; for children, the position within the group - @override final int order; /// Server-managed official category (max. one per metric type and user). /// The app never creates official categories itself. - @override final bool isOfficial; /// What the server calculates the entries of this category from, /// [noDynamicType] for one the user fills themselves. Deliberately the raw /// string: a type added after this release still has to read as calculated, /// see [isCalculated]. - @override final String dynamicType; /// Configuration of the calculation, its keys depend on [dynamicType]. Null /// for a category the server does not calculate. - @override final Map? dynamicParams; /// Child categories (components) of this group. Populated by the repository /// for display, never persisted directly. - @override final List children; MeasurementCategory({ diff --git a/lib/features/measurements/models/measurement_category.freezed.dart b/lib/features/measurements/models/measurement_category.freezed.dart index 3d562d870..ac6adb31f 100644 --- a/lib/features/measurements/models/measurement_category.freezed.dart +++ b/lib/features/measurements/models/measurement_category.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'measurement_category.dart'; @@ -9,37 +9,13 @@ part of 'measurement_category.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc mixin _$MeasurementCategory { -/// Client-generated UUID, is `null` only before the first persist - String? get id; String get name; String get unit;/// Drives the health-platform mapping (and, later, default unit/aggregation/ -/// chart). [MetricType.custom] for plain user-created categories. - MetricType get metricType;/// Chart the user picked for this category, [ChartType.auto] (the server's -/// null) for the one derived from [metricType]. - ChartType get chartType;/// Taste-level chart settings, read through [chartSettings]. -/// -/// Null for a category that configured none, which is also what a row synced -/// before the column existed reads. Keys this release does not know are -/// kept: another client may have written them, and a write from here -/// replaces the whole object. - Map? get chartConfig;/// Multi-value groups (e.g. blood pressure): id of the parent category, one -/// child per component. Max. one level of nesting; only leaf categories -/// (no children) carry entries. - String? get parentId;/// Position in the category list; for children, the position within the group - int get order;/// Server-managed official category (max. one per metric type and user). -/// The app never creates official categories itself. - bool get isOfficial;/// What the server calculates the entries of this category from, -/// [noDynamicType] for one the user fills themselves. Deliberately the raw -/// string: a type added after this release still has to read as calculated, -/// see [isCalculated]. - String get dynamicType;/// Configuration of the calculation, its keys depend on [dynamicType]. Null -/// for a category the server does not calculate. - Map? get dynamicParams;/// Child categories (components) of this group. Populated by the repository -/// for display, never persisted directly. - List get children; + /// Create a copy of MeasurementCategory /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -50,16 +26,21 @@ $MeasurementCategoryCopyWith get copyWith => _$MeasurementC @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is MeasurementCategory&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.unit, unit) || other.unit == unit)&&(identical(other.metricType, metricType) || other.metricType == metricType)&&(identical(other.chartType, chartType) || other.chartType == chartType)&&const DeepCollectionEquality().equals(other.chartConfig, chartConfig)&&(identical(other.parentId, parentId) || other.parentId == parentId)&&(identical(other.order, order) || other.order == order)&&(identical(other.isOfficial, isOfficial) || other.isOfficial == isOfficial)&&(identical(other.dynamicType, dynamicType) || other.dynamicType == dynamicType)&&const DeepCollectionEquality().equals(other.dynamicParams, dynamicParams)&&const DeepCollectionEquality().equals(other.children, children)); + final _this = this as MeasurementCategory; + return identical(this, other) || (other.runtimeType == runtimeType&&other is MeasurementCategory&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.name, _this.name) || other.name == _this.name)&&(identical(other.unit, _this.unit) || other.unit == _this.unit)&&(identical(other.metricType, _this.metricType) || other.metricType == _this.metricType)&&(identical(other.chartType, _this.chartType) || other.chartType == _this.chartType)&&const DeepCollectionEquality().equals(other.chartConfig, _this.chartConfig)&&(identical(other.parentId, _this.parentId) || other.parentId == _this.parentId)&&(identical(other.order, _this.order) || other.order == _this.order)&&(identical(other.isOfficial, _this.isOfficial) || other.isOfficial == _this.isOfficial)&&(identical(other.dynamicType, _this.dynamicType) || other.dynamicType == _this.dynamicType)&&const DeepCollectionEquality().equals(other.dynamicParams, _this.dynamicParams)&&const DeepCollectionEquality().equals(other.children, _this.children)); } @override -int get hashCode => Object.hash(runtimeType,id,name,unit,metricType,chartType,const DeepCollectionEquality().hash(chartConfig),parentId,order,isOfficial,dynamicType,const DeepCollectionEquality().hash(dynamicParams),const DeepCollectionEquality().hash(children)); +int get hashCode { + final _this = this as MeasurementCategory; + return Object.hash(runtimeType,_this.id,_this.name,_this.unit,_this.metricType,_this.chartType,const DeepCollectionEquality().hash(_this.chartConfig),_this.parentId,_this.order,_this.isOfficial,_this.dynamicType,const DeepCollectionEquality().hash(_this.dynamicParams),const DeepCollectionEquality().hash(_this.children)); +} @override String toString() { - return 'MeasurementCategory(id: $id, name: $name, unit: $unit, metricType: $metricType, chartType: $chartType, chartConfig: $chartConfig, parentId: $parentId, order: $order, isOfficial: $isOfficial, dynamicType: $dynamicType, dynamicParams: $dynamicParams, children: $children)'; + final _this = this as MeasurementCategory; + return 'MeasurementCategory(id: ${_this.id}, name: ${_this.name}, unit: ${_this.unit}, metricType: ${_this.metricType}, chartType: ${_this.chartType}, chartConfig: ${_this.chartConfig}, parentId: ${_this.parentId}, order: ${_this.order}, isOfficial: ${_this.isOfficial}, dynamicType: ${_this.dynamicType}, dynamicParams: ${_this.dynamicParams}, children: ${_this.children})'; } diff --git a/lib/features/measurements/models/measurement_entry.dart b/lib/features/measurements/models/measurement_entry.dart index 83a719e45..86b4a21ab 100644 --- a/lib/features/measurements/models/measurement_entry.dart +++ b/lib/features/measurements/models/measurement_entry.dart @@ -34,36 +34,28 @@ const measurementSourceCalculated = 'calculated'; @freezed class MeasurementEntry with _$MeasurementEntry { /// Client-generated UUID, is `null` only before the first persist - @override final String? id; - @override final String categoryId; - @override final DateTime date; - @override final num value; - @override final String notes; /// Origin of the reading; one of the server's `source` values /// (`user`, `google`, `apple`). - @override final String source; /// Platform record UUID, used to deduplicate re-imports. `null` for manual /// entries. - @override final String? externalId; /// Per-entry metadata (server JSONField). The `unit` key holds the unit /// [value] was entered in; without it the category unit applies. Raw values /// are meaningless without their unit, so display and calculations go /// through `valueIn` instead of reading [value] directly. - @override final Map? extraData; MeasurementEntry({ diff --git a/lib/features/measurements/models/measurement_entry.freezed.dart b/lib/features/measurements/models/measurement_entry.freezed.dart index 2d3e66044..424f9894a 100644 --- a/lib/features/measurements/models/measurement_entry.freezed.dart +++ b/lib/features/measurements/models/measurement_entry.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'measurement_entry.dart'; @@ -9,21 +9,13 @@ part of 'measurement_entry.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc mixin _$MeasurementEntry { -/// Client-generated UUID, is `null` only before the first persist - String? get id; String get categoryId; DateTime get date; num get value; String get notes;/// Origin of the reading; one of the server's `source` values -/// (`user`, `google`, `apple`). - String get source;/// Platform record UUID, used to deduplicate re-imports. `null` for manual -/// entries. - String? get externalId;/// Per-entry metadata (server JSONField). The `unit` key holds the unit -/// [value] was entered in; without it the category unit applies. Raw values -/// are meaningless without their unit, so display and calculations go -/// through `valueIn` instead of reading [value] directly. - Map? get extraData; + /// Create a copy of MeasurementEntry /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -34,16 +26,21 @@ $MeasurementEntryCopyWith get copyWith => _$MeasurementEntryCo @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is MeasurementEntry&&(identical(other.id, id) || other.id == id)&&(identical(other.categoryId, categoryId) || other.categoryId == categoryId)&&(identical(other.date, date) || other.date == date)&&(identical(other.value, value) || other.value == value)&&(identical(other.notes, notes) || other.notes == notes)&&(identical(other.source, source) || other.source == source)&&(identical(other.externalId, externalId) || other.externalId == externalId)&&const DeepCollectionEquality().equals(other.extraData, extraData)); + final _this = this as MeasurementEntry; + return identical(this, other) || (other.runtimeType == runtimeType&&other is MeasurementEntry&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.categoryId, _this.categoryId) || other.categoryId == _this.categoryId)&&(identical(other.date, _this.date) || other.date == _this.date)&&(identical(other.value, _this.value) || other.value == _this.value)&&(identical(other.notes, _this.notes) || other.notes == _this.notes)&&(identical(other.source, _this.source) || other.source == _this.source)&&(identical(other.externalId, _this.externalId) || other.externalId == _this.externalId)&&const DeepCollectionEquality().equals(other.extraData, _this.extraData)); } @override -int get hashCode => Object.hash(runtimeType,id,categoryId,date,value,notes,source,externalId,const DeepCollectionEquality().hash(extraData)); +int get hashCode { + final _this = this as MeasurementEntry; + return Object.hash(runtimeType,_this.id,_this.categoryId,_this.date,_this.value,_this.notes,_this.source,_this.externalId,const DeepCollectionEquality().hash(_this.extraData)); +} @override String toString() { - return 'MeasurementEntry(id: $id, categoryId: $categoryId, date: $date, value: $value, notes: $notes, source: $source, externalId: $externalId, extraData: $extraData)'; + final _this = this as MeasurementEntry; + return 'MeasurementEntry(id: ${_this.id}, categoryId: ${_this.categoryId}, date: ${_this.date}, value: ${_this.value}, notes: ${_this.notes}, source: ${_this.source}, externalId: ${_this.externalId}, extraData: ${_this.extraData})'; } diff --git a/lib/features/routines/models/session.dart b/lib/features/routines/models/session.dart index b6fb63a29..57819bf23 100644 --- a/lib/features/routines/models/session.dart +++ b/lib/features/routines/models/session.dart @@ -67,21 +67,13 @@ class WorkoutSession with _$WorkoutSession { static const maxNotesChars = 1000; /// Client-generated UUID, is `null` only before the first persist - @override final String? id; - @override final int? routineId; - @override final int? dayId; - @override final WorkoutImpression impression; - @override final String? notes; - @override final DateTime datetimeStart; - @override final DateTime? datetimeEnd; - @override final List logs; WorkoutSession({ diff --git a/lib/features/routines/models/session.freezed.dart b/lib/features/routines/models/session.freezed.dart index f1b1be07c..d95d99980 100644 --- a/lib/features/routines/models/session.freezed.dart +++ b/lib/features/routines/models/session.freezed.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file -// ignore_for_file: type=lint +// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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 'session.dart'; @@ -9,13 +9,13 @@ part of 'session.dart'; // FreezedGenerator // ************************************************************************** +// GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc mixin _$WorkoutSession { -/// Client-generated UUID, is `null` only before the first persist - String? get id; int? get routineId; int? get dayId; WorkoutImpression get impression; String? get notes; DateTime get datetimeStart; DateTime? get datetimeEnd; List get logs; + /// Create a copy of WorkoutSession /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -26,16 +26,21 @@ $WorkoutSessionCopyWith get copyWith => _$WorkoutSessionCopyWith @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is WorkoutSession&&(identical(other.id, id) || other.id == id)&&(identical(other.routineId, routineId) || other.routineId == routineId)&&(identical(other.dayId, dayId) || other.dayId == dayId)&&(identical(other.impression, impression) || other.impression == impression)&&(identical(other.notes, notes) || other.notes == notes)&&(identical(other.datetimeStart, datetimeStart) || other.datetimeStart == datetimeStart)&&(identical(other.datetimeEnd, datetimeEnd) || other.datetimeEnd == datetimeEnd)&&const DeepCollectionEquality().equals(other.logs, logs)); + final _this = this as WorkoutSession; + return identical(this, other) || (other.runtimeType == runtimeType&&other is WorkoutSession&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.routineId, _this.routineId) || other.routineId == _this.routineId)&&(identical(other.dayId, _this.dayId) || other.dayId == _this.dayId)&&(identical(other.impression, _this.impression) || other.impression == _this.impression)&&(identical(other.notes, _this.notes) || other.notes == _this.notes)&&(identical(other.datetimeStart, _this.datetimeStart) || other.datetimeStart == _this.datetimeStart)&&(identical(other.datetimeEnd, _this.datetimeEnd) || other.datetimeEnd == _this.datetimeEnd)&&const DeepCollectionEquality().equals(other.logs, _this.logs)); } @override -int get hashCode => Object.hash(runtimeType,id,routineId,dayId,impression,notes,datetimeStart,datetimeEnd,const DeepCollectionEquality().hash(logs)); +int get hashCode { + final _this = this as WorkoutSession; + return Object.hash(runtimeType,_this.id,_this.routineId,_this.dayId,_this.impression,_this.notes,_this.datetimeStart,_this.datetimeEnd,const DeepCollectionEquality().hash(_this.logs)); +} @override String toString() { - return 'WorkoutSession(id: $id, routineId: $routineId, dayId: $dayId, impression: $impression, notes: $notes, datetimeStart: $datetimeStart, datetimeEnd: $datetimeEnd, logs: $logs)'; + final _this = this as WorkoutSession; + return 'WorkoutSession(id: ${_this.id}, routineId: ${_this.routineId}, dayId: ${_this.dayId}, impression: ${_this.impression}, notes: ${_this.notes}, datetimeStart: ${_this.datetimeStart}, datetimeEnd: ${_this.datetimeEnd}, logs: ${_this.logs})'; } diff --git a/test/core/media_url_prefix_notifier_test.mocks.dart b/test/core/media_url_prefix_notifier_test.mocks.dart index a73d6a4cc..2b8a924d3 100644 --- a/test/core/media_url_prefix_notifier_test.mocks.dart +++ b/test/core/media_url_prefix_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/media_url_prefix_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:http/http.dart' as _i2; @@ -18,6 +17,7 @@ import 'package:wger/core/network/base_provider.dart' as _i5; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable @@ -42,7 +42,6 @@ class _FakeResponse_2 extends _i1.SmartFake implements _i2.Response { /// A class which mocks [SharedPreferencesAsync]. /// /// See the documentation for Mockito's code generation for more information. -// ignore: must_be_immutable class MockSharedPreferencesAsync extends _i1.Mock implements _i3.SharedPreferencesAsync { MockSharedPreferencesAsync() { _i1.throwOnMissingStub(this); diff --git a/test/core/network/auth_credentials_storage_test.mocks.dart b/test/core/network/auth_credentials_storage_test.mocks.dart index 4f8364853..1e0646949 100644 --- a/test/core/network/auth_credentials_storage_test.mocks.dart +++ b/test/core/network/auth_credentials_storage_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/network/auth_credentials_storage_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -15,6 +14,7 @@ import 'package:wger/core/network/secure_token_storage.dart' as _i2; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/core/network/auth_http_client_test.mocks.dart b/test/core/network/auth_http_client_test.mocks.dart index 1452cf202..70638b4d6 100644 --- a/test/core/network/auth_http_client_test.mocks.dart +++ b/test/core/network/auth_http_client_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/network/auth_http_client_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -18,6 +17,7 @@ import 'package:mockito/src/dummies.dart' as _i5; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/core/network/auth_notifier_login_test.mocks.dart b/test/core/network/auth_notifier_login_test.mocks.dart index c26bf16b6..f96a457ba 100644 --- a/test/core/network/auth_notifier_login_test.mocks.dart +++ b/test/core/network/auth_notifier_login_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/network/auth_notifier_login_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'dart:convert' as _i5; import 'dart:typed_data' as _i7; @@ -21,6 +20,7 @@ import 'package:wger/features/account/providers/account_repository.dart' as _i9; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/core/network/auth_notifier_powersync_test.mocks.dart b/test/core/network/auth_notifier_powersync_test.mocks.dart index c73e56a09..2ee94da66 100644 --- a/test/core/network/auth_notifier_powersync_test.mocks.dart +++ b/test/core/network/auth_notifier_powersync_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/network/auth_notifier_powersync_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -19,6 +18,7 @@ import 'package:wger/core/network/secure_token_storage.dart' as _i7; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/core/network/base_provider_test.mocks.dart b/test/core/network/base_provider_test.mocks.dart index 49902827b..8907696e3 100644 --- a/test/core/network/base_provider_test.mocks.dart +++ b/test/core/network/base_provider_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/network/base_provider_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -18,6 +17,7 @@ import 'package:mockito/src/dummies.dart' as _i5; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/core/recovery_screens_test.mocks.dart b/test/core/recovery_screens_test.mocks.dart index 38e6c9ed1..acbbaf708 100644 --- a/test/core/recovery_screens_test.mocks.dart +++ b/test/core/recovery_screens_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/recovery_screens_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -19,6 +18,7 @@ import 'package:wger/core/network/secure_token_storage.dart' as _i7; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/core/validators_test.mocks.dart b/test/core/validators_test.mocks.dart index a79a78276..d81e0e6dd 100644 --- a/test/core/validators_test.mocks.dart +++ b/test/core/validators_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/core/validators_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i3; import 'package:wger/l10n/generated/app_localizations.dart' as _i2; @@ -14,6 +13,7 @@ import 'package:wger/l10n/generated/app_localizations.dart' as _i2; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/account/providers/account_notifier_test.mocks.dart b/test/features/account/providers/account_notifier_test.mocks.dart index 7ac2fce15..f6cbee1b3 100644 --- a/test/features/account/providers/account_notifier_test.mocks.dart +++ b/test/features/account/providers/account_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/account/providers/account_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +15,7 @@ import 'package:wger/features/account/providers/account_repository.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/account/providers/account_repository_test.mocks.dart b/test/features/account/providers/account_repository_test.mocks.dart index d8c83dab0..a3f8eeb1f 100644 --- a/test/features/account/providers/account_repository_test.mocks.dart +++ b/test/features/account/providers/account_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/account/providers/account_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/core/network/base_provider.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/account/providers/user_profile_notifier_test.mocks.dart b/test/features/account/providers/user_profile_notifier_test.mocks.dart index 1119e435d..7cc0e06d1 100644 --- a/test/features/account/providers/user_profile_notifier_test.mocks.dart +++ b/test/features/account/providers/user_profile_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/account/providers/user_profile_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +15,7 @@ import 'package:wger/features/account/providers/user_profile_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/account/widgets/forms_test.mocks.dart b/test/features/account/widgets/forms_test.mocks.dart index 8ac54ad4d..f176c81d6 100644 --- a/test/features/account/widgets/forms_test.mocks.dart +++ b/test/features/account/widgets/forms_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/account/widgets/forms_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/account/providers/user_profile_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/account/widgets/settings_test.mocks.dart b/test/features/account/widgets/settings_test.mocks.dart index 476e0fd2a..ed63072bf 100644 --- a/test/features/account/widgets/settings_test.mocks.dart +++ b/test/features/account/widgets/settings_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/account/widgets/settings_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -15,6 +14,7 @@ import 'package:shared_preferences/src/shared_preferences_async.dart' as _i2; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable @@ -27,7 +27,6 @@ import 'package:shared_preferences/src/shared_preferences_async.dart' as _i2; /// A class which mocks [SharedPreferencesAsync]. /// /// See the documentation for Mockito's code generation for more information. -// ignore: must_be_immutable class MockSharedPreferencesAsync extends _i1.Mock implements _i2.SharedPreferencesAsync { MockSharedPreferencesAsync() { _i1.throwOnMissingStub(this); diff --git a/test/features/auth/screens/auth_screen_test.mocks.dart b/test/features/auth/screens/auth_screen_test.mocks.dart index 9f7931485..3f7dc258b 100644 --- a/test/features/auth/screens/auth_screen_test.mocks.dart +++ b/test/features/auth/screens/auth_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/auth/screens/auth_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -19,6 +18,7 @@ import 'package:wger/core/network/secure_token_storage.dart' as _i7; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/auth/screens/mfa_challenge_screen_test.mocks.dart b/test/features/auth/screens/mfa_challenge_screen_test.mocks.dart index d0dc4d11f..658221c37 100644 --- a/test/features/auth/screens/mfa_challenge_screen_test.mocks.dart +++ b/test/features/auth/screens/mfa_challenge_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/auth/screens/mfa_challenge_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -19,6 +18,7 @@ import 'package:wger/core/network/secure_token_storage.dart' as _i7; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/providers/add_exercise_notifier_test.mocks.dart b/test/features/exercises/providers/add_exercise_notifier_test.mocks.dart index 7d0c52766..8822b6cc4 100644 --- a/test/features/exercises/providers/add_exercise_notifier_test.mocks.dart +++ b/test/features/exercises/providers/add_exercise_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/providers/add_exercise_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -17,6 +16,7 @@ import 'package:wger/features/exercises/providers/add_exercise_repository.dart' // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/providers/add_exercise_repository_test.mocks.dart b/test/features/exercises/providers/add_exercise_repository_test.mocks.dart index fa2c8aec9..2fb5cf6a7 100644 --- a/test/features/exercises/providers/add_exercise_repository_test.mocks.dart +++ b/test/features/exercises/providers/add_exercise_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/providers/add_exercise_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/core/network/base_provider.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/providers/exercise_filters_notifier_test.mocks.dart b/test/features/exercises/providers/exercise_filters_notifier_test.mocks.dart index 83835cc7d..c3509ff43 100644 --- a/test/features/exercises/providers/exercise_filters_notifier_test.mocks.dart +++ b/test/features/exercises/providers/exercise_filters_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/providers/exercise_filters_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/exercises/providers/exercises_notifier.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/providers/exercise_repository_test.mocks.dart b/test/features/exercises/providers/exercise_repository_test.mocks.dart index 19ef923da..33e2d3686 100644 --- a/test/features/exercises/providers/exercise_repository_test.mocks.dart +++ b/test/features/exercises/providers/exercise_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/providers/exercise_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/core/network/base_provider.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/providers/exercises_notifier_test.mocks.dart b/test/features/exercises/providers/exercises_notifier_test.mocks.dart index 7ec7f112d..e10304eea 100644 --- a/test/features/exercises/providers/exercises_notifier_test.mocks.dart +++ b/test/features/exercises/providers/exercises_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/providers/exercises_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/exercises/providers/exercises_notifier.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/screens/add_exercise_screen_test.mocks.dart b/test/features/exercises/screens/add_exercise_screen_test.mocks.dart index 5e2998274..bcd4499e1 100644 --- a/test/features/exercises/screens/add_exercise_screen_test.mocks.dart +++ b/test/features/exercises/screens/add_exercise_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/screens/add_exercise_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; @@ -27,6 +26,7 @@ import 'package:wger/features/exercises/providers/exercises_notifier.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/exercises/widgets/exercises_detail_widget_test.mocks.dart b/test/features/exercises/widgets/exercises_detail_widget_test.mocks.dart index 94e351354..f73b561e3 100644 --- a/test/features/exercises/widgets/exercises_detail_widget_test.mocks.dart +++ b/test/features/exercises/widgets/exercises_detail_widget_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/exercises/widgets/exercises_detail_widget_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/exercises/providers/exercises_notifier.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/gallery/providers/gallery_notifier_test.mocks.dart b/test/features/gallery/providers/gallery_notifier_test.mocks.dart index efc80b30a..9929651ba 100644 --- a/test/features/gallery/providers/gallery_notifier_test.mocks.dart +++ b/test/features/gallery/providers/gallery_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/gallery/providers/gallery_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:image_picker/image_picker.dart' as _i5; @@ -17,6 +16,7 @@ import 'package:wger/features/gallery/providers/gallery_repository.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/gallery/providers/gallery_repository_test.mocks.dart b/test/features/gallery/providers/gallery_repository_test.mocks.dart index f866f064a..594009242 100644 --- a/test/features/gallery/providers/gallery_repository_test.mocks.dart +++ b/test/features/gallery/providers/gallery_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/gallery/providers/gallery_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/core/network/base_provider.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/gallery/screens/gallery_screen_test.mocks.dart b/test/features/gallery/screens/gallery_screen_test.mocks.dart index 5c963eed1..3847d332a 100644 --- a/test/features/gallery/screens/gallery_screen_test.mocks.dart +++ b/test/features/gallery/screens/gallery_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/gallery/screens/gallery_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:image_picker/image_picker.dart' as _i5; @@ -17,6 +16,7 @@ import 'package:wger/features/gallery/providers/gallery_repository.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/gallery/widgets/forms_test.mocks.dart b/test/features/gallery/widgets/forms_test.mocks.dart index 8f76ab1b9..3fb68c25a 100644 --- a/test/features/gallery/widgets/forms_test.mocks.dart +++ b/test/features/gallery/widgets/forms_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/gallery/widgets/forms_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:image_picker/image_picker.dart' as _i5; @@ -17,6 +16,7 @@ import 'package:wger/features/gallery/providers/gallery_repository.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/gallery/widgets/overview_test.mocks.dart b/test/features/gallery/widgets/overview_test.mocks.dart index b3392daa2..525618162 100644 --- a/test/features/gallery/widgets/overview_test.mocks.dart +++ b/test/features/gallery/widgets/overview_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/gallery/widgets/overview_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:image_picker/image_picker.dart' as _i5; @@ -17,6 +16,7 @@ import 'package:wger/features/gallery/providers/gallery_repository.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/health/providers/health_importer_test.mocks.dart b/test/features/health/providers/health_importer_test.mocks.dart index 4e030abdd..42f23a149 100644 --- a/test/features/health/providers/health_importer_test.mocks.dart +++ b/test/features/health/providers/health_importer_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/health/providers/health_importer_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:health_bridge/health.dart' as _i5; @@ -24,6 +23,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/health/providers/health_repository_test.mocks.dart b/test/features/health/providers/health_repository_test.mocks.dart index f47baece6..ba3f40ae5 100644 --- a/test/features/health/providers/health_repository_test.mocks.dart +++ b/test/features/health/providers/health_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/health/providers/health_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:health_bridge/health.dart' as _i2; @@ -16,6 +15,7 @@ import 'package:mockito/src/dummies.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/health/providers/health_sync_test.mocks.dart b/test/features/health/providers/health_sync_test.mocks.dart index 8f6a68f2e..2af31fb18 100644 --- a/test/features/health/providers/health_sync_test.mocks.dart +++ b/test/features/health/providers/health_sync_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/health/providers/health_sync_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:health_bridge/health.dart' as _i5; @@ -24,6 +23,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/providers/body_weight_provider_test.mocks.dart b/test/features/measurements/providers/body_weight_provider_test.mocks.dart index 371c805d1..0f0a8f6c5 100644 --- a/test/features/measurements/providers/body_weight_provider_test.mocks.dart +++ b/test/features/measurements/providers/body_weight_provider_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/providers/body_weight_provider_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/providers/measurement_notifier_test.mocks.dart b/test/features/measurements/providers/measurement_notifier_test.mocks.dart index 829389d34..865d07b2f 100644 --- a/test/features/measurements/providers/measurement_notifier_test.mocks.dart +++ b/test/features/measurements/providers/measurement_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/providers/measurement_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -20,6 +19,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/screens/measurement_categories_screen_test.mocks.dart b/test/features/measurements/screens/measurement_categories_screen_test.mocks.dart index d3a088429..75b12d435 100644 --- a/test/features/measurements/screens/measurement_categories_screen_test.mocks.dart +++ b/test/features/measurements/screens/measurement_categories_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/screens/measurement_categories_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/screens/measurement_category_sort_screen_test.mocks.dart b/test/features/measurements/screens/measurement_category_sort_screen_test.mocks.dart index ccf20ae99..ef9871131 100644 --- a/test/features/measurements/screens/measurement_category_sort_screen_test.mocks.dart +++ b/test/features/measurements/screens/measurement_category_sort_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/screens/measurement_category_sort_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/screens/measurement_entries_screen_test.mocks.dart b/test/features/measurements/screens/measurement_entries_screen_test.mocks.dart index 48b912bfd..8273f2ac8 100644 --- a/test/features/measurements/screens/measurement_entries_screen_test.mocks.dart +++ b/test/features/measurements/screens/measurement_entries_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/screens/measurement_entries_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -27,6 +26,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/screens/weight_screen_test.mocks.dart b/test/features/measurements/screens/weight_screen_test.mocks.dart index fd391012e..0524b8d8b 100644 --- a/test/features/measurements/screens/weight_screen_test.mocks.dart +++ b/test/features/measurements/screens/weight_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/screens/weight_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -29,6 +28,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/calculation_mark_test.mocks.dart b/test/features/measurements/widgets/calculation_mark_test.mocks.dart index c8b47066a..79142d505 100644 --- a/test/features/measurements/widgets/calculation_mark_test.mocks.dart +++ b/test/features/measurements/widgets/calculation_mark_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/calculation_mark_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/calculation_params_test.mocks.dart b/test/features/measurements/widgets/calculation_params_test.mocks.dart index 5387a82c1..5cc809076 100644 --- a/test/features/measurements/widgets/calculation_params_test.mocks.dart +++ b/test/features/measurements/widgets/calculation_params_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/calculation_params_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -26,6 +25,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/categories_test.mocks.dart b/test/features/measurements/widgets/categories_test.mocks.dart index d92829b46..7b34abf07 100644 --- a/test/features/measurements/widgets/categories_test.mocks.dart +++ b/test/features/measurements/widgets/categories_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/categories_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -20,6 +19,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/entries_test.mocks.dart b/test/features/measurements/widgets/entries_test.mocks.dart index 272eeda58..4e07e7aed 100644 --- a/test/features/measurements/widgets/entries_test.mocks.dart +++ b/test/features/measurements/widgets/entries_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/entries_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -27,6 +26,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/forms/category_test.mocks.dart b/test/features/measurements/widgets/forms/category_test.mocks.dart index ec276165a..60eae2f89 100644 --- a/test/features/measurements/widgets/forms/category_test.mocks.dart +++ b/test/features/measurements/widgets/forms/category_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/forms/category_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -28,6 +27,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/forms/entry_test.mocks.dart b/test/features/measurements/widgets/forms/entry_test.mocks.dart index b43d2e5bd..697b76f90 100644 --- a/test/features/measurements/widgets/forms/entry_test.mocks.dart +++ b/test/features/measurements/widgets/forms/entry_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/forms/entry_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/forms/group_entry_test.mocks.dart b/test/features/measurements/widgets/forms/group_entry_test.mocks.dart index 6807b93c3..80547b03b 100644 --- a/test/features/measurements/widgets/forms/group_entry_test.mocks.dart +++ b/test/features/measurements/widgets/forms/group_entry_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/forms/group_entry_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/measurement_fab_test.mocks.dart b/test/features/measurements/widgets/measurement_fab_test.mocks.dart index 632ba6828..008f63ee2 100644 --- a/test/features/measurements/widgets/measurement_fab_test.mocks.dart +++ b/test/features/measurements/widgets/measurement_fab_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/measurement_fab_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/measurement_tile_test.mocks.dart b/test/features/measurements/widgets/measurement_tile_test.mocks.dart index 418918c74..5d3f94fc1 100644 --- a/test/features/measurements/widgets/measurement_tile_test.mocks.dart +++ b/test/features/measurements/widgets/measurement_tile_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/measurement_tile_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/metric_picker_test.mocks.dart b/test/features/measurements/widgets/metric_picker_test.mocks.dart index abd2bc0f5..ce204fef8 100644 --- a/test/features/measurements/widgets/metric_picker_test.mocks.dart +++ b/test/features/measurements/widgets/metric_picker_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/metric_picker_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -20,6 +19,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/measurements/widgets/weight_form_test.mocks.dart b/test/features/measurements/widgets/weight_form_test.mocks.dart index 1183daa51..9c9634d73 100644 --- a/test/features/measurements/widgets/weight_form_test.mocks.dart +++ b/test/features/measurements/widgets/weight_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/measurements/widgets/weight_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -20,6 +19,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/providers/ingredient_notifier_test.mocks.dart b/test/features/nutrition/providers/ingredient_notifier_test.mocks.dart index 5cf99d205..dfd0143c0 100644 --- a/test/features/nutrition/providers/ingredient_notifier_test.mocks.dart +++ b/test/features/nutrition/providers/ingredient_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/providers/ingredient_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/nutrition/providers/ingredient_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/providers/ingredient_repository_test.mocks.dart b/test/features/nutrition/providers/ingredient_repository_test.mocks.dart index 9413a60f5..41a6d3836 100644 --- a/test/features/nutrition/providers/ingredient_repository_test.mocks.dart +++ b/test/features/nutrition/providers/ingredient_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/providers/ingredient_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/core/network/base_provider.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/providers/nutrition_notifier_test.mocks.dart b/test/features/nutrition/providers/nutrition_notifier_test.mocks.dart index cb4af3c75..3176aeaef 100644 --- a/test/features/nutrition/providers/nutrition_notifier_test.mocks.dart +++ b/test/features/nutrition/providers/nutrition_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/providers/nutrition_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -23,6 +22,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/screens/nutritional_plan_screen_test.mocks.dart b/test/features/nutrition/screens/nutritional_plan_screen_test.mocks.dart index 94a160df6..2ca857a25 100644 --- a/test/features/nutrition/screens/nutritional_plan_screen_test.mocks.dart +++ b/test/features/nutrition/screens/nutritional_plan_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/screens/nutritional_plan_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'dart:convert' as _i13; import 'dart:typed_data' as _i15; @@ -31,6 +30,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/screens/nutritional_plans_screen_test.mocks.dart b/test/features/nutrition/screens/nutritional_plans_screen_test.mocks.dart index 4ac8b9022..69a945d91 100644 --- a/test/features/nutrition/screens/nutritional_plans_screen_test.mocks.dart +++ b/test/features/nutrition/screens/nutritional_plans_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/screens/nutritional_plans_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'dart:convert' as _i13; import 'dart:typed_data' as _i15; @@ -33,6 +32,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/widgets/ingredient_typeahead_test.mocks.dart b/test/features/nutrition/widgets/ingredient_typeahead_test.mocks.dart index 6d72befae..be77b0d4c 100644 --- a/test/features/nutrition/widgets/ingredient_typeahead_test.mocks.dart +++ b/test/features/nutrition/widgets/ingredient_typeahead_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/widgets/ingredient_typeahead_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -18,6 +17,7 @@ import 'package:wger/features/nutrition/providers/ingredient_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/widgets/nutritional_meal_form_test.mocks.dart b/test/features/nutrition/widgets/nutritional_meal_form_test.mocks.dart index 4d9933365..68906ed1e 100644 --- a/test/features/nutrition/widgets/nutritional_meal_form_test.mocks.dart +++ b/test/features/nutrition/widgets/nutritional_meal_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/widgets/nutritional_meal_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -23,6 +22,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/widgets/nutritional_meal_item_form_test.mocks.dart b/test/features/nutrition/widgets/nutritional_meal_item_form_test.mocks.dart index 5db59f591..b09c289e6 100644 --- a/test/features/nutrition/widgets/nutritional_meal_item_form_test.mocks.dart +++ b/test/features/nutrition/widgets/nutritional_meal_item_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/widgets/nutritional_meal_item_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -27,6 +26,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/widgets/nutritional_plan_form_test.mocks.dart b/test/features/nutrition/widgets/nutritional_plan_form_test.mocks.dart index f836bdcbc..a41a4e7d7 100644 --- a/test/features/nutrition/widgets/nutritional_plan_form_test.mocks.dart +++ b/test/features/nutrition/widgets/nutritional_plan_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/widgets/nutritional_plan_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -23,6 +22,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/nutrition/widgets/plan_weight_chart_test.mocks.dart b/test/features/nutrition/widgets/plan_weight_chart_test.mocks.dart index 482894e41..513b43ebd 100644 --- a/test/features/nutrition/widgets/plan_weight_chart_test.mocks.dart +++ b/test/features/nutrition/widgets/plan_weight_chart_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/nutrition/widgets/plan_weight_chart_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -20,6 +19,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/helpers/routine_form_test_overrides.mocks.dart b/test/features/routines/helpers/routine_form_test_overrides.mocks.dart index cc01947e8..926cb4930 100644 --- a/test/features/routines/helpers/routine_form_test_overrides.mocks.dart +++ b/test/features/routines/helpers/routine_form_test_overrides.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/helpers/routine_form_test_overrides.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; @@ -26,6 +25,7 @@ import 'package:wger/features/routines/providers/workout_session_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/providers/plate_weights_test.mocks.dart b/test/features/routines/providers/plate_weights_test.mocks.dart index e8e059142..ff81daa22 100644 --- a/test/features/routines/providers/plate_weights_test.mocks.dart +++ b/test/features/routines/providers/plate_weights_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/providers/plate_weights_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -15,6 +14,7 @@ import 'package:shared_preferences/src/shared_preferences_async.dart' as _i2; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable @@ -27,7 +27,6 @@ import 'package:shared_preferences/src/shared_preferences_async.dart' as _i2; /// A class which mocks [SharedPreferencesAsync]. /// /// See the documentation for Mockito's code generation for more information. -// ignore: must_be_immutable class MockSharedPreferencesAsync extends _i1.Mock implements _i2.SharedPreferencesAsync { MockSharedPreferencesAsync() { _i1.throwOnMissingStub(this); diff --git a/test/features/routines/providers/routines_notifier_test.mocks.dart b/test/features/routines/providers/routines_notifier_test.mocks.dart index f3fc849e7..b79498965 100644 --- a/test/features/routines/providers/routines_notifier_test.mocks.dart +++ b/test/features/routines/providers/routines_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/providers/routines_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/providers/routines_repository_test.mocks.dart b/test/features/routines/providers/routines_repository_test.mocks.dart index d69c0d1e8..4bbcf4e3a 100644 --- a/test/features/routines/providers/routines_repository_test.mocks.dart +++ b/test/features/routines/providers/routines_repository_test.mocks.dart @@ -1,16 +1,17 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/providers/routines_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i6; +import 'dart:async' as _i7; +import 'package:drift/backends.dart' as _i5; import 'package:drift/drift.dart' as _i3; -import 'package:drift/src/runtime/executor/stream_queries.dart' as _i5; +import 'package:drift/src/runtime/executor/stream_queries.dart' as _i6; import 'package:http/http.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i8; -import 'package:wger/core/network/base_provider.dart' as _i7; +import 'package:mockito/src/dummies.dart' as _i9; +import 'package:wger/core/network/base_provider.dart' as _i8; import 'package:wger/database/powersync/database.dart' as _i4; // ignore_for_file: type=lint @@ -19,6 +20,7 @@ import 'package:wger/database/powersync/database.dart' as _i4; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable @@ -253,12 +255,12 @@ class _FakeDatabaseConnection_38 extends _i1.SmartFake implements _i3.DatabaseCo : super(parent, parentInvocation); } -class _FakeQueryExecutor_39 extends _i1.SmartFake implements _i3.QueryExecutor { +class _FakeQueryExecutor_39 extends _i1.SmartFake implements _i5.QueryExecutor { _FakeQueryExecutor_39(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeStreamQueryStore_40 extends _i1.SmartFake implements _i5.StreamQueryStore { +class _FakeStreamQueryStore_40 extends _i1.SmartFake implements _i6.StreamQueryStore { _FakeStreamQueryStore_40(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } @@ -272,7 +274,7 @@ class _FakeMigrator_42 extends _i1.SmartFake implements _i3.Migrator { _FakeMigrator_42(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeFuture_43 extends _i1.SmartFake implements _i6.Future { +class _FakeFuture_43 extends _i1.SmartFake implements _i7.Future { _FakeFuture_43(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } @@ -324,7 +326,7 @@ class _FakeGenerationContext_51 extends _i1.SmartFake implements _i3.GenerationC /// A class which mocks [WgerBaseProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { +class MockWgerBaseProvider extends _i1.Mock implements _i8.WgerBaseProvider { MockWgerBaseProvider() { _i1.throwOnMissingStub(this); } @@ -347,7 +349,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { String getAppNameHeaderValue() => (super.noSuchMethod( Invocation.method(#getAppNameHeaderValue, []), - returnValue: _i8.dummyValue( + returnValue: _i9.dummyValue( this, Invocation.method(#getAppNameHeaderValue, []), ), @@ -398,7 +400,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { as Uri); @override - _i6.Future fetch( + _i7.Future fetch( Uri? uri, { int? maxRetries = 3, Duration? initialDelay = const Duration(milliseconds: 250), @@ -416,12 +418,12 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { #language: language, }, ), - returnValue: _i6.Future.value(), + returnValue: _i7.Future.value(), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future> fetchPaginated( + _i7.Future> fetchPaginated( Uri? uri, { String? language, Duration? timeout = const Duration(seconds: 15), @@ -432,55 +434,55 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { [uri], {#language: language, #timeout: timeout}, ), - returnValue: _i6.Future>.value([]), + returnValue: _i7.Future>.value([]), ) - as _i6.Future>); + as _i7.Future>); @override - _i6.Future> post(Map? data, Uri? uri) => + _i7.Future> post(Map? data, Uri? uri) => (super.noSuchMethod( Invocation.method(#post, [data, uri]), - returnValue: _i6.Future>.value( + returnValue: _i7.Future>.value( {}, ), ) - as _i6.Future>); + as _i7.Future>); @override - _i6.Future> put(Map? data, Uri? uri) => + _i7.Future> put(Map? data, Uri? uri) => (super.noSuchMethod( Invocation.method(#put, [data, uri]), - returnValue: _i6.Future>.value( + returnValue: _i7.Future>.value( {}, ), ) - as _i6.Future>); + as _i7.Future>); @override - _i6.Future> patch( + _i7.Future> patch( Map? data, Uri? uri, ) => (super.noSuchMethod( Invocation.method(#patch, [data, uri]), - returnValue: _i6.Future>.value( + returnValue: _i7.Future>.value( {}, ), ) - as _i6.Future>); + as _i7.Future>); @override - _i6.Future<_i2.Response> deleteRequest(String? url, int? id) => + _i7.Future<_i2.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( Invocation.method(#deleteRequest, [url, id]), - returnValue: _i6.Future<_i2.Response>.value( + returnValue: _i7.Future<_i2.Response>.value( _FakeResponse_2( this, Invocation.method(#deleteRequest, [url, id]), ), ), ) - as _i6.Future<_i2.Response>); + as _i7.Future<_i2.Response>); } /// A class which mocks [DriftPowersyncDatabase]. @@ -911,7 +913,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD _i3.SqlTypes get typeMapping => (super.noSuchMethod( Invocation.getter(#typeMapping), - returnValue: _i8.dummyValue<_i3.SqlTypes>( + returnValue: _i9.dummyValue<_i3.SqlTypes>( this, Invocation.getter(#typeMapping), ), @@ -919,7 +921,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD as _i3.SqlTypes); @override - _i3.QueryExecutor get executor => + _i5.QueryExecutor get executor => (super.noSuchMethod( Invocation.getter(#executor), returnValue: _FakeQueryExecutor_39( @@ -927,10 +929,10 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD Invocation.getter(#executor), ), ) - as _i3.QueryExecutor); + as _i5.QueryExecutor); @override - _i5.StreamQueryStore get streamQueries => + _i6.StreamQueryStore get streamQueries => (super.noSuchMethod( Invocation.getter(#streamQueries), returnValue: _FakeStreamQueryStore_40( @@ -938,7 +940,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD Invocation.getter(#streamQueries), ), ) - as _i5.StreamQueryStore); + as _i6.StreamQueryStore); @override _i3.DatabaseConnectionUser get resolvedEngine => @@ -963,29 +965,29 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD as _i3.Migrator); @override - _i6.Future beforeOpen( - _i3.QueryExecutor? executor, + _i7.Future beforeOpen( + _i5.QueryExecutor? executor, _i3.OpeningDetails? details, ) => (super.noSuchMethod( Invocation.method(#beforeOpen, [executor, details]), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future close() => + _i7.Future close() => (super.noSuchMethod( Invocation.method(#close, []), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future computeWithDatabase({ - required _i6.FutureOr Function(DB)? computation, + _i7.Future computeWithDatabase({ + required _i7.FutureOr Function(DB)? computation, required DB Function(_i3.DatabaseConnection)? connect, }) => (super.noSuchMethod( @@ -994,15 +996,15 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD #connect: connect, }), returnValue: - _i8.ifNotNull( - _i8.dummyValueOrNull( + _i9.ifNotNull( + _i9.dummyValueOrNull( this, Invocation.method(#computeWithDatabase, [], { #computation: computation, #connect: connect, }), ), - (Ret v) => _i6.Future.value(v), + (Ret v) => _i7.Future.value(v), ) ?? _FakeFuture_43( this, @@ -1012,23 +1014,23 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD }), ), ) - as _i6.Future); + as _i7.Future); @override - _i6.Stream createStream( - _i5.QueryStreamFetcher? stmt, + _i7.Stream createStream( + _i6.QueryStreamFetcher? stmt, ) => (super.noSuchMethod( Invocation.method(#createStream, [stmt]), - returnValue: _i6.Stream.empty(), + returnValue: _i7.Stream.empty(), ) - as _i6.Stream); + as _i7.Stream); @override T alias(_i3.ResultSetImplementation? table, String? alias) => (super.noSuchMethod( Invocation.method(#alias, [table, alias]), - returnValue: _i8.dummyValue( + returnValue: _i9.dummyValue( this, Invocation.method(#alias, [table, alias]), ), @@ -1048,32 +1050,32 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD ); @override - _i6.Stream> tableUpdates([ + _i7.Stream> tableUpdates([ _i3.TableUpdateQuery? query = const _i3.TableUpdateQuery.any(), ]) => (super.noSuchMethod( Invocation.method(#tableUpdates, [query]), - returnValue: _i6.Stream>.empty(), + returnValue: _i7.Stream>.empty(), ) - as _i6.Stream>); + as _i7.Stream>); @override - _i6.Future doWhenOpened( - _i6.FutureOr Function(_i3.QueryExecutor)? fn, + _i7.Future doWhenOpened( + _i7.FutureOr Function(_i5.QueryExecutor)? fn, ) => (super.noSuchMethod( Invocation.method(#doWhenOpened, [fn]), returnValue: - _i8.ifNotNull( - _i8.dummyValueOrNull( + _i9.ifNotNull( + _i9.dummyValueOrNull( this, Invocation.method(#doWhenOpened, [fn]), ), - (T v) => _i6.Future.value(v), + (T v) => _i7.Future.value(v), ) ?? _FakeFuture_43(this, Invocation.method(#doWhenOpened, [fn])), ) - as _i6.Future); + as _i7.Future); @override _i3.InsertStatement into( @@ -1156,7 +1158,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD as _i3.DeleteStatement); @override - _i6.Future customUpdate( + _i7.Future customUpdate( String? query, { List<_i3.Variable>? variables = const [], Set<_i3.ResultSetImplementation>? updates, @@ -1172,12 +1174,12 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD #updateKind: updateKind, }, ), - returnValue: _i6.Future.value(0), + returnValue: _i7.Future.value(0), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future customInsert( + _i7.Future customInsert( String? query, { List<_i3.Variable>? variables = const [], Set<_i3.ResultSetImplementation>? updates, @@ -1188,12 +1190,12 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD [query], {#variables: variables, #updates: updates}, ), - returnValue: _i6.Future.value(0), + returnValue: _i7.Future.value(0), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future> customWriteReturning( + _i7.Future> customWriteReturning( String? query, { List<_i3.Variable>? variables = const [], Set<_i3.ResultSetImplementation>? updates, @@ -1209,9 +1211,9 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD #updateKind: updateKind, }, ), - returnValue: _i6.Future>.value(<_i3.QueryRow>[]), + returnValue: _i7.Future>.value(<_i3.QueryRow>[]), ) - as _i6.Future>); + as _i7.Future>); @override _i3.Selectable<_i3.QueryRow> customSelect( @@ -1260,17 +1262,17 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD as _i3.Selectable<_i3.QueryRow>); @override - _i6.Future customStatement(String? statement, [List? args]) => + _i7.Future customStatement(String? statement, [List? args]) => (super.noSuchMethod( Invocation.method(#customStatement, [statement, args]), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future transaction( - _i6.Future Function()? action, { + _i7.Future transaction( + _i7.Future Function()? action, { bool? requireNew = false, }) => (super.noSuchMethod( @@ -1280,8 +1282,8 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD {#requireNew: requireNew}, ), returnValue: - _i8.ifNotNull( - _i8.dummyValueOrNull( + _i9.ifNotNull( + _i9.dummyValueOrNull( this, Invocation.method( #transaction, @@ -1289,7 +1291,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD {#requireNew: requireNew}, ), ), - (T v) => _i6.Future.value(v), + (T v) => _i7.Future.value(v), ) ?? _FakeFuture_43( this, @@ -1300,39 +1302,39 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD ), ), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future exclusively(_i6.Future Function()? action) => + _i7.Future exclusively(_i7.Future Function()? action) => (super.noSuchMethod( Invocation.method(#exclusively, [action]), returnValue: - _i8.ifNotNull( - _i8.dummyValueOrNull( + _i9.ifNotNull( + _i9.dummyValueOrNull( this, Invocation.method(#exclusively, [action]), ), - (T v) => _i6.Future.value(v), + (T v) => _i7.Future.value(v), ) ?? _FakeFuture_43( this, Invocation.method(#exclusively, [action]), ), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future batch(_i6.FutureOr Function(_i3.Batch)? runInBatch) => + _i7.Future batch(_i7.FutureOr Function(_i3.Batch)? runInBatch) => (super.noSuchMethod( Invocation.method(#batch, [runInBatch]), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), ) - as _i6.Future); + as _i7.Future); @override - _i6.Future runWithInterceptor( - _i6.Future Function()? action, { + _i7.Future runWithInterceptor( + _i7.Future Function()? action, { required _i3.QueryInterceptor? interceptor, }) => (super.noSuchMethod( @@ -1342,8 +1344,8 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD {#interceptor: interceptor}, ), returnValue: - _i8.ifNotNull( - _i8.dummyValueOrNull( + _i9.ifNotNull( + _i9.dummyValueOrNull( this, Invocation.method( #runWithInterceptor, @@ -1351,7 +1353,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD {#interceptor: interceptor}, ), ), - (T v) => _i6.Future.value(v), + (T v) => _i7.Future.value(v), ) ?? _FakeFuture_43( this, @@ -1362,7 +1364,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD ), ), ) - as _i6.Future); + as _i7.Future); @override _i3.GenerationContext $write( @@ -1440,7 +1442,7 @@ class MockDriftPowersyncDatabase extends _i1.Mock implements _i4.DriftPowersyncD String $expandVar(int? start, int? amount) => (super.noSuchMethod( Invocation.method(#$expandVar, [start, amount]), - returnValue: _i8.dummyValue( + returnValue: _i9.dummyValue( this, Invocation.method(#$expandVar, [start, amount]), ), diff --git a/test/features/routines/providers/workout_logs_notifier_test.mocks.dart b/test/features/routines/providers/workout_logs_notifier_test.mocks.dart index b3b60d7a2..9714b0872 100644 --- a/test/features/routines/providers/workout_logs_notifier_test.mocks.dart +++ b/test/features/routines/providers/workout_logs_notifier_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/providers/workout_logs_notifier_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +15,7 @@ import 'package:wger/features/routines/providers/workout_logs_repository.dart' a // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/screens/gym_mode_test.mocks.dart b/test/features/routines/screens/gym_mode_test.mocks.dart index f510f2352..bd57a091e 100644 --- a/test/features/routines/screens/gym_mode_test.mocks.dart +++ b/test/features/routines/screens/gym_mode_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/screens/gym_mode_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i10; import 'package:mockito/mockito.dart' as _i1; @@ -42,6 +41,7 @@ import 'package:wger/features/trophies/providers/trophy_repository.dart' as _i22 // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/screens/routine_list_screen_test.mocks.dart b/test/features/routines/screens/routine_list_screen_test.mocks.dart index 52eaba675..245091a09 100644 --- a/test/features/routines/screens/routine_list_screen_test.mocks.dart +++ b/test/features/routines/screens/routine_list_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/screens/routine_list_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/screens/routine_logs_screen_test.mocks.dart b/test/features/routines/screens/routine_logs_screen_test.mocks.dart index a79bc9078..035a259ff 100644 --- a/test/features/routines/screens/routine_logs_screen_test.mocks.dart +++ b/test/features/routines/screens/routine_logs_screen_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/screens/routine_logs_screen_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:mockito/mockito.dart' as _i1; @@ -24,6 +23,7 @@ import 'package:wger/features/trophies/providers/trophy_repository.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/forms/day_form_test.mocks.dart b/test/features/routines/widgets/forms/day_form_test.mocks.dart index 4601ecb71..9c66902a3 100644 --- a/test/features/routines/widgets/forms/day_form_test.mocks.dart +++ b/test/features/routines/widgets/forms/day_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/forms/day_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/forms/routine_form_test.mocks.dart b/test/features/routines/widgets/forms/routine_form_test.mocks.dart index 3dc7ea7a2..ed2d71550 100644 --- a/test/features/routines/widgets/forms/routine_form_test.mocks.dart +++ b/test/features/routines/widgets/forms/routine_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/forms/routine_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i9; import 'package:mockito/mockito.dart' as _i1; @@ -34,6 +33,7 @@ import 'package:wger/features/routines/providers/workout_session_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/forms/session_form_test.mocks.dart b/test/features/routines/widgets/forms/session_form_test.mocks.dart index 0db03f51e..cdeb52d55 100644 --- a/test/features/routines/widgets/forms/session_form_test.mocks.dart +++ b/test/features/routines/widgets/forms/session_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/forms/session_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +15,7 @@ import 'package:wger/features/routines/providers/workout_session_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/forms/slot_entry_form_test.mocks.dart b/test/features/routines/widgets/forms/slot_entry_form_test.mocks.dart index 2054f1cce..c316dfbaf 100644 --- a/test/features/routines/widgets/forms/slot_entry_form_test.mocks.dart +++ b/test/features/routines/widgets/forms/slot_entry_form_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/forms/slot_entry_form_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/forms/slot_test.mocks.dart b/test/features/routines/widgets/forms/slot_test.mocks.dart index 4885e65de..1cc6ae65a 100644 --- a/test/features/routines/widgets/forms/slot_test.mocks.dart +++ b/test/features/routines/widgets/forms/slot_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/forms/slot_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/gym_mode/log_page_test.mocks.dart b/test/features/routines/widgets/gym_mode/log_page_test.mocks.dart index 95028d5f6..353d5c80f 100644 --- a/test/features/routines/widgets/gym_mode/log_page_test.mocks.dart +++ b/test/features/routines/widgets/gym_mode/log_page_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/gym_mode/log_page_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +15,7 @@ import 'package:wger/features/routines/providers/workout_logs_repository.dart' a // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/gym_mode/session_page_test.mocks.dart b/test/features/routines/widgets/gym_mode/session_page_test.mocks.dart index 52f0f1727..3a6b9c085 100644 --- a/test/features/routines/widgets/gym_mode/session_page_test.mocks.dart +++ b/test/features/routines/widgets/gym_mode/session_page_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/gym_mode/session_page_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +15,7 @@ import 'package:wger/features/routines/providers/workout_session_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/routines/widgets/routine_edit_test.mocks.dart b/test/features/routines/widgets/routine_edit_test.mocks.dart index d421764b6..aa9a0af27 100644 --- a/test/features/routines/widgets/routine_edit_test.mocks.dart +++ b/test/features/routines/widgets/routine_edit_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/routines/widgets/routine_edit_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/features/trophies/providers/trophy_repository_test.mocks.dart b/test/features/trophies/providers/trophy_repository_test.mocks.dart index 3ac70de42..c32a0da46 100644 --- a/test/features/trophies/providers/trophy_repository_test.mocks.dart +++ b/test/features/trophies/providers/trophy_repository_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/features/trophies/providers/trophy_repository_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/core/network/base_provider.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/powersync/api_client_test.mocks.dart b/test/powersync/api_client_test.mocks.dart index fd21ad33f..b8b5477a7 100644 --- a/test/powersync/api_client_test.mocks.dart +++ b/test/powersync/api_client_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/powersync/api_client_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'dart:convert' as _i4; import 'dart:typed_data' as _i6; @@ -18,6 +17,7 @@ import 'package:mockito/src/dummies.dart' as _i5; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/powersync/connector_test.mocks.dart b/test/powersync/connector_test.mocks.dart index 8d1859d10..f02041f88 100644 --- a/test/powersync/connector_test.mocks.dart +++ b/test/powersync/connector_test.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/powersync/connector_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i5; import 'package:http/http.dart' as _i2; @@ -17,6 +16,7 @@ import 'package:wger/powersync/api_client.dart' as _i3; // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/screenshots/screenshots_01_dashboard.mocks.dart b/test/screenshots/screenshots_01_dashboard.mocks.dart index 23fb39bf7..240a529ea 100644 --- a/test/screenshots/screenshots_01_dashboard.mocks.dart +++ b/test/screenshots/screenshots_01_dashboard.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/screenshots/screenshots_01_dashboard.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i11; import 'package:health_bridge/health.dart' as _i44; @@ -58,6 +57,7 @@ import 'package:wger/features/trophies/providers/trophy_repository.dart' as _i31 // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/screenshots/screenshots_02_workout.mocks.dart b/test/screenshots/screenshots_02_workout.mocks.dart index 01c7a5c00..75cbef624 100644 --- a/test/screenshots/screenshots_02_workout.mocks.dart +++ b/test/screenshots/screenshots_02_workout.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/screenshots/screenshots_02_workout.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i8; import 'package:mockito/mockito.dart' as _i1; @@ -22,6 +21,7 @@ import 'package:wger/features/routines/providers/routines_repository.dart' as _i // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/screenshots/screenshots_04_measurements.mocks.dart b/test/screenshots/screenshots_04_measurements.mocks.dart index 1f3e80919..7d81ff71f 100644 --- a/test/screenshots/screenshots_04_measurements.mocks.dart +++ b/test/screenshots/screenshots_04_measurements.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/screenshots/screenshots_04_measurements.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -20,6 +19,7 @@ import 'package:wger/features/measurements/providers/measurement_repository.dart // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable diff --git a/test/screenshots/screenshots_05_nutritional_plan.mocks.dart b/test/screenshots/screenshots_05_nutritional_plan.mocks.dart index 7e8fbc846..570d1d92d 100644 --- a/test/screenshots/screenshots_05_nutritional_plan.mocks.dart +++ b/test/screenshots/screenshots_05_nutritional_plan.mocks.dart @@ -1,9 +1,8 @@ -// Mocks generated by Mockito 5.4.6 from annotations +// Mocks generated by Mockito from annotations // in wger/test/screenshots/screenshots_05_nutritional_plan.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes - import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -27,6 +26,7 @@ import 'package:wger/features/nutrition/providers/nutrition_repository.dart' as // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: experimental_member_use // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable