diff --git a/test/exercises/contribute_exercise_test.mocks.dart b/test/exercises/contribute_exercise_test.mocks.dart index 25cee87e..dabd07a3 100644 --- a/test/exercises/contribute_exercise_test.mocks.dart +++ b/test/exercises/contribute_exercise_test.mocks.dart @@ -40,420 +40,329 @@ import 'package:wger/providers/user.dart' as _i17; // ignore_for_file: subtype_of_sealed_class // ignore_for_file: invalid_use_of_internal_member -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { - _FakeWgerBaseProvider_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { + _FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeVariation_1 extends _i1.SmartFake implements _i3.Variation { - _FakeVariation_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeVariation_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeSharedPreferencesAsync_2 extends _i1.SmartFake implements _i4.SharedPreferencesAsync { - _FakeSharedPreferencesAsync_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeSharedPreferencesAsync_2 extends _i1.SmartFake + implements _i4.SharedPreferencesAsync { + _FakeSharedPreferencesAsync_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeExerciseDatabase_3 extends _i1.SmartFake implements _i5.ExerciseDatabase { - _FakeExerciseDatabase_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeExerciseDatabase_3 extends _i1.SmartFake + implements _i5.ExerciseDatabase { + _FakeExerciseDatabase_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeExercise_4 extends _i1.SmartFake implements _i6.Exercise { - _FakeExercise_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeExercise_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeExerciseCategory_5 extends _i1.SmartFake implements _i7.ExerciseCategory { - _FakeExerciseCategory_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeExerciseCategory_5 extends _i1.SmartFake + implements _i7.ExerciseCategory { + _FakeExerciseCategory_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeEquipment_6 extends _i1.SmartFake implements _i8.Equipment { - _FakeEquipment_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeEquipment_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeMuscle_7 extends _i1.SmartFake implements _i9.Muscle { - _FakeMuscle_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeMuscle_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeLanguage_8 extends _i1.SmartFake implements _i10.Language { - _FakeLanguage_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeLanguage_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [AddExerciseProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvider { +class MockAddExerciseProvider extends _i1.Mock + implements _i11.AddExerciseProvider { MockAddExerciseProvider() { _i1.throwOnMissingStub(this); } @override - _i2.WgerBaseProvider get baseProvider => (super.noSuchMethod( - Invocation.getter(#baseProvider), - returnValue: _FakeWgerBaseProvider_0( - this, - Invocation.getter(#baseProvider), - ), - ) as _i2.WgerBaseProvider); + _i2.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_0( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i2.WgerBaseProvider); @override - List<_i12.File> get exerciseImages => (super.noSuchMethod( - Invocation.getter(#exerciseImages), - returnValue: <_i12.File>[], - ) as List<_i12.File>); + List<_i12.File> get exerciseImages => + (super.noSuchMethod( + Invocation.getter(#exerciseImages), + returnValue: <_i12.File>[], + ) + as List<_i12.File>); @override - List get alternateNamesEn => (super.noSuchMethod( - Invocation.getter(#alternateNamesEn), - returnValue: [], - ) as List); + List get alternateNamesEn => + (super.noSuchMethod( + Invocation.getter(#alternateNamesEn), + returnValue: [], + ) + as List); @override - List get alternateNamesTrans => (super.noSuchMethod( - Invocation.getter(#alternateNamesTrans), - returnValue: [], - ) as List); + List get alternateNamesTrans => + (super.noSuchMethod( + Invocation.getter(#alternateNamesTrans), + returnValue: [], + ) + as List); @override - List<_i8.Equipment> get equipment => (super.noSuchMethod( - Invocation.getter(#equipment), - returnValue: <_i8.Equipment>[], - ) as List<_i8.Equipment>); + List<_i8.Equipment> get equipment => + (super.noSuchMethod( + Invocation.getter(#equipment), + returnValue: <_i8.Equipment>[], + ) + as List<_i8.Equipment>); @override - bool get newVariation => (super.noSuchMethod( - Invocation.getter(#newVariation), - returnValue: false, - ) as bool); + bool get newVariation => + (super.noSuchMethod(Invocation.getter(#newVariation), returnValue: false) + as bool); @override - _i3.Variation get variation => (super.noSuchMethod( - Invocation.getter(#variation), - returnValue: _FakeVariation_1( - this, - Invocation.getter(#variation), - ), - ) as _i3.Variation); + _i3.Variation get variation => + (super.noSuchMethod( + Invocation.getter(#variation), + returnValue: _FakeVariation_1(this, Invocation.getter(#variation)), + ) + as _i3.Variation); @override - List<_i9.Muscle> get primaryMuscles => (super.noSuchMethod( - Invocation.getter(#primaryMuscles), - returnValue: <_i9.Muscle>[], - ) as List<_i9.Muscle>); + List<_i9.Muscle> get primaryMuscles => + (super.noSuchMethod( + Invocation.getter(#primaryMuscles), + returnValue: <_i9.Muscle>[], + ) + as List<_i9.Muscle>); @override - List<_i9.Muscle> get secondaryMuscles => (super.noSuchMethod( - Invocation.getter(#secondaryMuscles), - returnValue: <_i9.Muscle>[], - ) as List<_i9.Muscle>); + List<_i9.Muscle> get secondaryMuscles => + (super.noSuchMethod( + Invocation.getter(#secondaryMuscles), + returnValue: <_i9.Muscle>[], + ) + as List<_i9.Muscle>); @override - _i13.ExerciseSubmissionApi get exerciseApiObject => (super.noSuchMethod( - Invocation.getter(#exerciseApiObject), - returnValue: _i14.dummyValue<_i13.ExerciseSubmissionApi>( - this, - Invocation.getter(#exerciseApiObject), - ), - ) as _i13.ExerciseSubmissionApi); + _i13.ExerciseSubmissionApi get exerciseApiObject => + (super.noSuchMethod( + Invocation.getter(#exerciseApiObject), + returnValue: _i14.dummyValue<_i13.ExerciseSubmissionApi>( + this, + Invocation.getter(#exerciseApiObject), + ), + ) + as _i13.ExerciseSubmissionApi); @override set exerciseNameEn(String? value) => super.noSuchMethod( - Invocation.setter( - #exerciseNameEn, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#exerciseNameEn, value), + returnValueForMissingStub: null, + ); @override set exerciseNameTrans(String? value) => super.noSuchMethod( - Invocation.setter( - #exerciseNameTrans, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#exerciseNameTrans, value), + returnValueForMissingStub: null, + ); @override set descriptionEn(String? value) => super.noSuchMethod( - Invocation.setter( - #descriptionEn, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#descriptionEn, value), + returnValueForMissingStub: null, + ); @override set descriptionTrans(String? value) => super.noSuchMethod( - Invocation.setter( - #descriptionTrans, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#descriptionTrans, value), + returnValueForMissingStub: null, + ); @override set languageEn(_i10.Language? value) => super.noSuchMethod( - Invocation.setter( - #languageEn, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#languageEn, value), + returnValueForMissingStub: null, + ); @override set languageTranslation(_i10.Language? value) => super.noSuchMethod( - Invocation.setter( - #languageTranslation, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#languageTranslation, value), + returnValueForMissingStub: null, + ); @override set alternateNamesEn(List? value) => super.noSuchMethod( - Invocation.setter( - #alternateNamesEn, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#alternateNamesEn, value), + returnValueForMissingStub: null, + ); @override set alternateNamesTrans(List? value) => super.noSuchMethod( - Invocation.setter( - #alternateNamesTrans, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#alternateNamesTrans, value), + returnValueForMissingStub: null, + ); @override set category(_i7.ExerciseCategory? value) => super.noSuchMethod( - Invocation.setter( - #category, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#category, value), + returnValueForMissingStub: null, + ); @override set equipment(List<_i8.Equipment>? equipment) => super.noSuchMethod( - Invocation.setter( - #equipment, - equipment, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#equipment, equipment), + returnValueForMissingStub: null, + ); @override - set newVariationForExercise(int? value) => super.noSuchMethod( - Invocation.setter( - #newVariationForExercise, - value, - ), - returnValueForMissingStub: null, - ); + set variationConnectToExercise(int? value) => super.noSuchMethod( + Invocation.setter(#variationConnectToExercise, value), + returnValueForMissingStub: null, + ); @override set variationId(int? variation) => super.noSuchMethod( - Invocation.setter( - #variationId, - variation, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#variationId, variation), + returnValueForMissingStub: null, + ); @override set primaryMuscles(List<_i9.Muscle>? muscles) => super.noSuchMethod( - Invocation.setter( - #primaryMuscles, - muscles, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#primaryMuscles, muscles), + returnValueForMissingStub: null, + ); @override set secondaryMuscles(List<_i9.Muscle>? muscles) => super.noSuchMethod( - Invocation.setter( - #secondaryMuscles, - muscles, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#secondaryMuscles, muscles), + returnValueForMissingStub: null, + ); @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); @override void clear() => super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); @override - void addExerciseImages(List<_i12.File>? exercises) => super.noSuchMethod( - Invocation.method( - #addExerciseImages, - [exercises], - ), - returnValueForMissingStub: null, - ); + void addExerciseImages( + List<_i12.File>? images, { + String? title, + String? author, + String? authorUrl, + String? sourceUrl, + String? derivativeSourceUrl, + String? style = '1', + }) => super.noSuchMethod( + Invocation.method( + #addExerciseImages, + [images], + { + #title: title, + #author: author, + #authorUrl: authorUrl, + #sourceUrl: sourceUrl, + #derivativeSourceUrl: derivativeSourceUrl, + #style: style, + }, + ), + returnValueForMissingStub: null, + ); @override void removeExercise(String? path) => super.noSuchMethod( - Invocation.method( - #removeExercise, - [path], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeExercise, [path]), + returnValueForMissingStub: null, + ); @override - void printValues() => super.noSuchMethod( - Invocation.method( - #printValues, - [], - ), - returnValueForMissingStub: null, - ); - - @override - _i15.Future addExercise() => (super.noSuchMethod( - Invocation.method( - #addExercise, - [], - ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); - - @override - _i15.Future addExerciseSubmission() => (super.noSuchMethod( - Invocation.method( - #addExerciseSubmission, - [], - ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); - - @override - _i15.Future addImages(int? exerciseId) => (super.noSuchMethod( - Invocation.method( - #addImages, - [exerciseId], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); - - @override - _i15.Future validateLanguage( - String? input, - String? languageCode, - ) => + _i15.Future addExercise() => (super.noSuchMethod( - Invocation.method( - #validateLanguage, - [ - input, - languageCode, - ], - ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + Invocation.method(#addExercise, []), + returnValue: _i15.Future.value(0), + ) + as _i15.Future); + + @override + _i15.Future addExerciseSubmission() => + (super.noSuchMethod( + Invocation.method(#addExerciseSubmission, []), + returnValue: _i15.Future.value(0), + ) + as _i15.Future); + + @override + _i15.Future addImages(int? exerciseId) => + (super.noSuchMethod( + Invocation.method(#addImages, [exerciseId]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); + + @override + _i15.Future validateLanguage(String? input, String? languageCode) => + (super.noSuchMethod( + Invocation.method(#validateLanguage, [input, languageCode]), + returnValue: _i15.Future.value(false), + ) + as _i15.Future); @override void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); @override void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); @override void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [UserProvider]. @@ -465,145 +374,120 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider { } @override - _i18.ThemeMode get themeMode => (super.noSuchMethod( - Invocation.getter(#themeMode), - returnValue: _i18.ThemeMode.system, - ) as _i18.ThemeMode); + _i18.ThemeMode get themeMode => + (super.noSuchMethod( + Invocation.getter(#themeMode), + returnValue: _i18.ThemeMode.system, + ) + as _i18.ThemeMode); @override - _i2.WgerBaseProvider get baseProvider => (super.noSuchMethod( - Invocation.getter(#baseProvider), - returnValue: _FakeWgerBaseProvider_0( - this, - Invocation.getter(#baseProvider), - ), - ) as _i2.WgerBaseProvider); + _i2.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_0( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i2.WgerBaseProvider); @override - _i4.SharedPreferencesAsync get prefs => (super.noSuchMethod( - Invocation.getter(#prefs), - returnValue: _FakeSharedPreferencesAsync_2( - this, - Invocation.getter(#prefs), - ), - ) as _i4.SharedPreferencesAsync); + _i4.SharedPreferencesAsync get prefs => + (super.noSuchMethod( + Invocation.getter(#prefs), + returnValue: _FakeSharedPreferencesAsync_2( + this, + Invocation.getter(#prefs), + ), + ) + as _i4.SharedPreferencesAsync); @override set themeMode(_i18.ThemeMode? value) => super.noSuchMethod( - Invocation.setter( - #themeMode, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#themeMode, value), + returnValueForMissingStub: null, + ); @override set prefs(_i4.SharedPreferencesAsync? value) => super.noSuchMethod( - Invocation.setter( - #prefs, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#prefs, value), + returnValueForMissingStub: null, + ); @override set profile(_i19.Profile? value) => super.noSuchMethod( - Invocation.setter( - #profile, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#profile, value), + returnValueForMissingStub: null, + ); @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); @override void clear() => super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); @override void setThemeMode(_i18.ThemeMode? mode) => super.noSuchMethod( - Invocation.method( - #setThemeMode, - [mode], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setThemeMode, [mode]), + returnValueForMissingStub: null, + ); @override - _i15.Future fetchAndSetProfile() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetProfile, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetProfile() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetProfile, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future saveProfile() => (super.noSuchMethod( - Invocation.method( - #saveProfile, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future saveProfile() => + (super.noSuchMethod( + Invocation.method(#saveProfile, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future verifyEmail() => (super.noSuchMethod( - Invocation.method( - #verifyEmail, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future verifyEmail() => + (super.noSuchMethod( + Invocation.method(#verifyEmail, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); @override void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); @override void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); } /// A class which mocks [ExercisesProvider]. @@ -615,159 +499,153 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider { } @override - _i2.WgerBaseProvider get baseProvider => (super.noSuchMethod( - Invocation.getter(#baseProvider), - returnValue: _FakeWgerBaseProvider_0( - this, - Invocation.getter(#baseProvider), - ), - ) as _i2.WgerBaseProvider); + _i2.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_0( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i2.WgerBaseProvider); @override - _i5.ExerciseDatabase get database => (super.noSuchMethod( - Invocation.getter(#database), - returnValue: _FakeExerciseDatabase_3( - this, - Invocation.getter(#database), - ), - ) as _i5.ExerciseDatabase); + _i5.ExerciseDatabase get database => + (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeExerciseDatabase_3( + this, + Invocation.getter(#database), + ), + ) + as _i5.ExerciseDatabase); @override - List<_i6.Exercise> get exercises => (super.noSuchMethod( - Invocation.getter(#exercises), - returnValue: <_i6.Exercise>[], - ) as List<_i6.Exercise>); + List<_i6.Exercise> get exercises => + (super.noSuchMethod( + Invocation.getter(#exercises), + returnValue: <_i6.Exercise>[], + ) + as List<_i6.Exercise>); @override - List<_i6.Exercise> get filteredExercises => (super.noSuchMethod( - Invocation.getter(#filteredExercises), - returnValue: <_i6.Exercise>[], - ) as List<_i6.Exercise>); + List<_i6.Exercise> get filteredExercises => + (super.noSuchMethod( + Invocation.getter(#filteredExercises), + returnValue: <_i6.Exercise>[], + ) + as List<_i6.Exercise>); @override - Map> get exerciseByVariation => (super.noSuchMethod( - Invocation.getter(#exerciseByVariation), - returnValue: >{}, - ) as Map>); + Map> get exerciseByVariation => + (super.noSuchMethod( + Invocation.getter(#exerciseByVariation), + returnValue: >{}, + ) + as Map>); @override - List<_i7.ExerciseCategory> get categories => (super.noSuchMethod( - Invocation.getter(#categories), - returnValue: <_i7.ExerciseCategory>[], - ) as List<_i7.ExerciseCategory>); + List<_i7.ExerciseCategory> get categories => + (super.noSuchMethod( + Invocation.getter(#categories), + returnValue: <_i7.ExerciseCategory>[], + ) + as List<_i7.ExerciseCategory>); @override - List<_i9.Muscle> get muscles => (super.noSuchMethod( - Invocation.getter(#muscles), - returnValue: <_i9.Muscle>[], - ) as List<_i9.Muscle>); + List<_i9.Muscle> get muscles => + (super.noSuchMethod( + Invocation.getter(#muscles), + returnValue: <_i9.Muscle>[], + ) + as List<_i9.Muscle>); @override - List<_i8.Equipment> get equipment => (super.noSuchMethod( - Invocation.getter(#equipment), - returnValue: <_i8.Equipment>[], - ) as List<_i8.Equipment>); + List<_i8.Equipment> get equipment => + (super.noSuchMethod( + Invocation.getter(#equipment), + returnValue: <_i8.Equipment>[], + ) + as List<_i8.Equipment>); @override - List<_i10.Language> get languages => (super.noSuchMethod( - Invocation.getter(#languages), - returnValue: <_i10.Language>[], - ) as List<_i10.Language>); + List<_i10.Language> get languages => + (super.noSuchMethod( + Invocation.getter(#languages), + returnValue: <_i10.Language>[], + ) + as List<_i10.Language>); @override set database(_i5.ExerciseDatabase? value) => super.noSuchMethod( - Invocation.setter( - #database, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#database, value), + returnValueForMissingStub: null, + ); @override set exercises(List<_i6.Exercise>? value) => super.noSuchMethod( - Invocation.setter( - #exercises, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#exercises, value), + returnValueForMissingStub: null, + ); @override - set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => super.noSuchMethod( - Invocation.setter( - #filteredExercises, - newFilteredExercises, - ), + set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => + super.noSuchMethod( + Invocation.setter(#filteredExercises, newFilteredExercises), returnValueForMissingStub: null, ); @override set languages(List<_i10.Language>? languages) => super.noSuchMethod( - Invocation.setter( - #languages, - languages, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#languages, languages), + returnValueForMissingStub: null, + ); @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); @override - _i15.Future setFilters(_i20.Filters? newFilters) => (super.noSuchMethod( - Invocation.method( - #setFilters, - [newFilters], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future setFilters(_i20.Filters? newFilters) => + (super.noSuchMethod( + Invocation.method(#setFilters, [newFilters]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override void initFilters() => super.noSuchMethod( - Invocation.method( - #initFilters, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#initFilters, []), + returnValueForMissingStub: null, + ); @override - _i15.Future findByFilters() => (super.noSuchMethod( - Invocation.method( - #findByFilters, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future findByFilters() => + (super.noSuchMethod( + Invocation.method(#findByFilters, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override void clear() => super.noSuchMethod( - Invocation.method( - #clear, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); @override - _i6.Exercise findExerciseById(int? id) => (super.noSuchMethod( - Invocation.method( - #findExerciseById, - [id], - ), - returnValue: _FakeExercise_4( - this, - Invocation.method( - #findExerciseById, - [id], - ), - ), - ) as _i6.Exercise); + _i6.Exercise findExerciseById(int? id) => + (super.noSuchMethod( + Invocation.method(#findExerciseById, [id]), + returnValue: _FakeExercise_4( + this, + Invocation.method(#findExerciseById, [id]), + ), + ) + as _i6.Exercise); @override List<_i6.Exercise> findExercisesByVariationId( @@ -775,132 +653,111 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider { int? exerciseIdToExclude, }) => (super.noSuchMethod( - Invocation.method( - #findExercisesByVariationId, - [variationId], - {#exerciseIdToExclude: exerciseIdToExclude}, - ), - returnValue: <_i6.Exercise>[], - ) as List<_i6.Exercise>); + Invocation.method( + #findExercisesByVariationId, + [variationId], + {#exerciseIdToExclude: exerciseIdToExclude}, + ), + returnValue: <_i6.Exercise>[], + ) + as List<_i6.Exercise>); @override - _i7.ExerciseCategory findCategoryById(int? id) => (super.noSuchMethod( - Invocation.method( - #findCategoryById, - [id], - ), - returnValue: _FakeExerciseCategory_5( - this, - Invocation.method( - #findCategoryById, - [id], - ), - ), - ) as _i7.ExerciseCategory); + _i7.ExerciseCategory findCategoryById(int? id) => + (super.noSuchMethod( + Invocation.method(#findCategoryById, [id]), + returnValue: _FakeExerciseCategory_5( + this, + Invocation.method(#findCategoryById, [id]), + ), + ) + as _i7.ExerciseCategory); @override - _i8.Equipment findEquipmentById(int? id) => (super.noSuchMethod( - Invocation.method( - #findEquipmentById, - [id], - ), - returnValue: _FakeEquipment_6( - this, - Invocation.method( - #findEquipmentById, - [id], - ), - ), - ) as _i8.Equipment); + _i8.Equipment findEquipmentById(int? id) => + (super.noSuchMethod( + Invocation.method(#findEquipmentById, [id]), + returnValue: _FakeEquipment_6( + this, + Invocation.method(#findEquipmentById, [id]), + ), + ) + as _i8.Equipment); @override - _i9.Muscle findMuscleById(int? id) => (super.noSuchMethod( - Invocation.method( - #findMuscleById, - [id], - ), - returnValue: _FakeMuscle_7( - this, - Invocation.method( - #findMuscleById, - [id], - ), - ), - ) as _i9.Muscle); + _i9.Muscle findMuscleById(int? id) => + (super.noSuchMethod( + Invocation.method(#findMuscleById, [id]), + returnValue: _FakeMuscle_7( + this, + Invocation.method(#findMuscleById, [id]), + ), + ) + as _i9.Muscle); @override - _i10.Language findLanguageById(int? id) => (super.noSuchMethod( - Invocation.method( - #findLanguageById, - [id], - ), - returnValue: _FakeLanguage_8( - this, - Invocation.method( - #findLanguageById, - [id], - ), - ), - ) as _i10.Language); + _i10.Language findLanguageById(int? id) => + (super.noSuchMethod( + Invocation.method(#findLanguageById, [id]), + returnValue: _FakeLanguage_8( + this, + Invocation.method(#findLanguageById, [id]), + ), + ) + as _i10.Language); @override - _i15.Future fetchAndSetCategoriesFromApi() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetCategoriesFromApi, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetCategoriesFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetCategoriesFromApi, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetMusclesFromApi() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetMusclesFromApi, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetMusclesFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetMusclesFromApi, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetEquipmentsFromApi() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetEquipmentsFromApi, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetEquipmentsFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetEquipmentsFromApi, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetLanguagesFromApi() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetLanguagesFromApi, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetLanguagesFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetLanguagesFromApi, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetAllExercises() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetAllExercises, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetAllExercises() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetAllExercises, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future<_i6.Exercise?> fetchAndSetExercise(int? exerciseId) => (super.noSuchMethod( - Invocation.method( - #fetchAndSetExercise, - [exerciseId], - ), - returnValue: _i15.Future<_i6.Exercise?>.value(), - ) as _i15.Future<_i6.Exercise?>); + _i15.Future<_i6.Exercise?> fetchAndSetExercise(int? exerciseId) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetExercise, [exerciseId]), + returnValue: _i15.Future<_i6.Exercise?>.value(), + ) + as _i15.Future<_i6.Exercise?>); @override _i15.Future<_i6.Exercise> handleUpdateExerciseFromApi( @@ -908,55 +765,50 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider { int? exerciseId, ) => (super.noSuchMethod( - Invocation.method( - #handleUpdateExerciseFromApi, - [ - database, - exerciseId, - ], - ), - returnValue: _i15.Future<_i6.Exercise>.value(_FakeExercise_4( - this, - Invocation.method( - #handleUpdateExerciseFromApi, - [ + Invocation.method(#handleUpdateExerciseFromApi, [ database, exerciseId, - ], - ), - )), - ) as _i15.Future<_i6.Exercise>); + ]), + returnValue: _i15.Future<_i6.Exercise>.value( + _FakeExercise_4( + this, + Invocation.method(#handleUpdateExerciseFromApi, [ + database, + exerciseId, + ]), + ), + ), + ) + as _i15.Future<_i6.Exercise>); @override - _i15.Future initCacheTimesLocalPrefs({dynamic forceInit = false}) => (super.noSuchMethod( - Invocation.method( - #initCacheTimesLocalPrefs, - [], - {#forceInit: forceInit}, - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future initCacheTimesLocalPrefs({dynamic forceInit = false}) => + (super.noSuchMethod( + Invocation.method(#initCacheTimesLocalPrefs, [], { + #forceInit: forceInit, + }), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future clearAllCachesAndPrefs() => (super.noSuchMethod( - Invocation.method( - #clearAllCachesAndPrefs, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future clearAllCachesAndPrefs() => + (super.noSuchMethod( + Invocation.method(#clearAllCachesAndPrefs, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetInitialData() => (super.noSuchMethod( - Invocation.method( - #fetchAndSetInitialData, - [], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetInitialData() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetInitialData, []), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override _i15.Future setExercisesFromDatabase( @@ -964,64 +816,60 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider { bool? forceDeleteCache = false, }) => (super.noSuchMethod( - Invocation.method( - #setExercisesFromDatabase, - [database], - {#forceDeleteCache: forceDeleteCache}, - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + Invocation.method( + #setExercisesFromDatabase, + [database], + {#forceDeleteCache: forceDeleteCache}, + ), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future updateExerciseCache(_i5.ExerciseDatabase? database) => (super.noSuchMethod( - Invocation.method( - #updateExerciseCache, - [database], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future updateExerciseCache(_i5.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#updateExerciseCache, [database]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetMuscles(_i5.ExerciseDatabase? database) => (super.noSuchMethod( - Invocation.method( - #fetchAndSetMuscles, - [database], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetMuscles(_i5.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetMuscles, [database]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetCategories(_i5.ExerciseDatabase? database) => (super.noSuchMethod( - Invocation.method( - #fetchAndSetCategories, - [database], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetCategories(_i5.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetCategories, [database]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetLanguages(_i5.ExerciseDatabase? database) => (super.noSuchMethod( - Invocation.method( - #fetchAndSetLanguages, - [database], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetLanguages(_i5.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetLanguages, [database]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override - _i15.Future fetchAndSetEquipments(_i5.ExerciseDatabase? database) => (super.noSuchMethod( - Invocation.method( - #fetchAndSetEquipments, - [database], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + _i15.Future fetchAndSetEquipments(_i5.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetEquipments, [database]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); @override _i15.Future> searchExercise( @@ -1030,50 +878,38 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider { bool? searchEnglish = false, }) => (super.noSuchMethod( - Invocation.method( - #searchExercise, - [name], - { - #languageCode: languageCode, - #searchEnglish: searchEnglish, - }, - ), - returnValue: _i15.Future>.value(<_i6.Exercise>[]), - ) as _i15.Future>); + Invocation.method( + #searchExercise, + [name], + {#languageCode: languageCode, #searchEnglish: searchEnglish}, + ), + returnValue: _i15.Future>.value( + <_i6.Exercise>[], + ), + ) + as _i15.Future>); @override void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); @override void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); @override void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); }