mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Format files as in master
This commit is contained in:
@@ -12,9 +12,7 @@ DayData _$DayDataFromJson(Map<String, dynamic> json) {
|
||||
iteration: (json['iteration'] as num).toInt(),
|
||||
date: DateTime.parse(json['date'] as String),
|
||||
label: json['label'] as String? ?? '',
|
||||
day: json['day'] == null
|
||||
? null
|
||||
: Day.fromJson(json['day'] as Map<String, dynamic>),
|
||||
day: json['day'] == null ? null : Day.fromJson(json['day'] as Map<String, dynamic>),
|
||||
slots:
|
||||
(json['slots'] as List<dynamic>?)
|
||||
?.map((e) => SlotData.fromJson(e as Map<String, dynamic>))
|
||||
|
||||
@@ -35,9 +35,7 @@ SetConfigData _$SetConfigDataFromJson(Map<String, dynamic> json) {
|
||||
return SetConfigData(
|
||||
exerciseId: (json['exercise'] as num).toInt(),
|
||||
slotEntryId: (json['slot_entry_id'] as num).toInt(),
|
||||
type:
|
||||
$enumDecodeNullable(_$SlotEntryTypeEnumMap, json['type']) ??
|
||||
SlotEntryType.normal,
|
||||
type: $enumDecodeNullable(_$SlotEntryTypeEnumMap, json['type']) ?? SlotEntryType.normal,
|
||||
nrOfSets: json['sets'] as num?,
|
||||
maxNrOfSets: json['max_sets'] as num?,
|
||||
weight: stringToNumNull(json['weight'] as String?),
|
||||
@@ -46,8 +44,7 @@ SetConfigData _$SetConfigDataFromJson(Map<String, dynamic> json) {
|
||||
weightRounding: stringToNumNull(json['weight_rounding'] as String?),
|
||||
repetitions: stringToNumNull(json['repetitions'] as String?),
|
||||
maxRepetitions: stringToNumNull(json['max_repetitions'] as String?),
|
||||
repetitionsUnitId:
|
||||
(json['repetitions_unit'] as num?)?.toInt() ?? REP_UNIT_REPETITIONS_ID,
|
||||
repetitionsUnitId: (json['repetitions_unit'] as num?)?.toInt() ?? REP_UNIT_REPETITIONS_ID,
|
||||
repetitionsRounding: stringToNumNull(
|
||||
json['repetitions_rounding'] as String?,
|
||||
),
|
||||
@@ -61,29 +58,28 @@ SetConfigData _$SetConfigDataFromJson(Map<String, dynamic> json) {
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> _$SetConfigDataToJson(SetConfigData instance) =>
|
||||
<String, dynamic>{
|
||||
'exercise': instance.exerciseId,
|
||||
'slot_entry_id': instance.slotEntryId,
|
||||
'type': _$SlotEntryTypeEnumMap[instance.type]!,
|
||||
'text_repr': instance.textRepr,
|
||||
'sets': instance.nrOfSets,
|
||||
'max_sets': instance.maxNrOfSets,
|
||||
'weight': instance.weight,
|
||||
'max_weight': instance.maxWeight,
|
||||
'weight_unit': instance.weightUnitId,
|
||||
'weight_rounding': instance.weightRounding,
|
||||
'repetitions': instance.repetitions,
|
||||
'max_repetitions': instance.maxRepetitions,
|
||||
'repetitions_unit': instance.repetitionsUnitId,
|
||||
'repetitions_rounding': instance.repetitionsRounding,
|
||||
'rir': instance.rir,
|
||||
'max_rir': instance.maxRir,
|
||||
'rpe': instance.rpe,
|
||||
'rest': instance.restTime,
|
||||
'max_rest': instance.maxRestTime,
|
||||
'comment': instance.comment,
|
||||
};
|
||||
Map<String, dynamic> _$SetConfigDataToJson(SetConfigData instance) => <String, dynamic>{
|
||||
'exercise': instance.exerciseId,
|
||||
'slot_entry_id': instance.slotEntryId,
|
||||
'type': _$SlotEntryTypeEnumMap[instance.type]!,
|
||||
'text_repr': instance.textRepr,
|
||||
'sets': instance.nrOfSets,
|
||||
'max_sets': instance.maxNrOfSets,
|
||||
'weight': instance.weight,
|
||||
'max_weight': instance.maxWeight,
|
||||
'weight_unit': instance.weightUnitId,
|
||||
'weight_rounding': instance.weightRounding,
|
||||
'repetitions': instance.repetitions,
|
||||
'max_repetitions': instance.maxRepetitions,
|
||||
'repetitions_unit': instance.repetitionsUnitId,
|
||||
'repetitions_rounding': instance.repetitionsRounding,
|
||||
'rir': instance.rir,
|
||||
'max_rir': instance.maxRir,
|
||||
'rpe': instance.rpe,
|
||||
'rest': instance.restTime,
|
||||
'max_rest': instance.maxRestTime,
|
||||
'comment': instance.comment,
|
||||
};
|
||||
|
||||
const _$SlotEntryTypeEnumMap = {
|
||||
SlotEntryType.normal: 'normal',
|
||||
|
||||
@@ -15,10 +15,7 @@ SlotData _$SlotDataFromJson(Map<String, dynamic> json) {
|
||||
comment: json['comment'] as String,
|
||||
isSuperset: json['is_superset'] as bool,
|
||||
exerciseIds:
|
||||
(json['exercises'] as List<dynamic>?)
|
||||
?.map((e) => (e as num).toInt())
|
||||
.toList() ??
|
||||
const [],
|
||||
(json['exercises'] as List<dynamic>?)?.map((e) => (e as num).toInt()).toList() ?? const [],
|
||||
setConfigs:
|
||||
(json['sets'] as List<dynamic>?)
|
||||
?.map((e) => SetConfigData.fromJson(e as Map<String, dynamic>))
|
||||
|
||||
@@ -27,9 +27,7 @@ SlotEntry _$SlotEntryFromJson(Map<String, dynamic> json) {
|
||||
id: (json['id'] as num?)?.toInt(),
|
||||
slotId: (json['slot'] as num).toInt(),
|
||||
order: (json['order'] as num?)?.toInt() ?? 1,
|
||||
type:
|
||||
$enumDecodeNullable(_$SlotEntryTypeEnumMap, json['type']) ??
|
||||
SlotEntryType.normal,
|
||||
type: $enumDecodeNullable(_$SlotEntryTypeEnumMap, json['type']) ?? SlotEntryType.normal,
|
||||
exerciseId: (json['exercise'] as num).toInt(),
|
||||
repetitionUnitId: (json['repetition_unit'] as num?)?.toInt(),
|
||||
repetitionRounding: stringToNumNull(json['repetition_rounding'] as String?),
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -46,108 +46,88 @@ import 'package:wger/providers/routines.dart' as _i23;
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeClient_1 extends _i1.SmartFake implements _i3.Client {
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeUri_2 extends _i1.SmartFake implements Uri {
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response {
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWgerBaseProvider_4 extends _i1.SmartFake
|
||||
implements _i4.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_4 extends _i1.SmartFake implements _i4.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExerciseDatabase_5 extends _i1.SmartFake
|
||||
implements _i5.ExerciseDatabase {
|
||||
class _FakeExerciseDatabase_5 extends _i1.SmartFake implements _i5.ExerciseDatabase {
|
||||
_FakeExerciseDatabase_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExercise_6 extends _i1.SmartFake implements _i6.Exercise {
|
||||
_FakeExercise_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeExercise_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExerciseCategory_7 extends _i1.SmartFake
|
||||
implements _i7.ExerciseCategory {
|
||||
class _FakeExerciseCategory_7 extends _i1.SmartFake implements _i7.ExerciseCategory {
|
||||
_FakeExerciseCategory_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeEquipment_8 extends _i1.SmartFake implements _i8.Equipment {
|
||||
_FakeEquipment_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeEquipment_8(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeMuscle_9 extends _i1.SmartFake implements _i9.Muscle {
|
||||
_FakeMuscle_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeMuscle_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLanguage_10 extends _i1.SmartFake implements _i10.Language {
|
||||
_FakeLanguage_10(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLanguage_10(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_11 extends _i1.SmartFake implements _i11.WeightUnit {
|
||||
_FakeWeightUnit_11(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_11(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_12 extends _i1.SmartFake
|
||||
implements _i12.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_12 extends _i1.SmartFake implements _i12.RepetitionUnit {
|
||||
_FakeRepetitionUnit_12(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_13 extends _i1.SmartFake implements _i13.Routine {
|
||||
_FakeRoutine_13(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_13(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_14 extends _i1.SmartFake implements _i14.Day {
|
||||
_FakeDay_14(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_14(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_15 extends _i1.SmartFake implements _i15.Slot {
|
||||
_FakeSlot_15(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_15(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_16 extends _i1.SmartFake implements _i16.SlotEntry {
|
||||
_FakeSlotEntry_16(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_16(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_17 extends _i1.SmartFake implements _i17.BaseConfig {
|
||||
_FakeBaseConfig_17(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_17(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_18 extends _i1.SmartFake
|
||||
implements _i18.WorkoutSession {
|
||||
class _FakeWorkoutSession_18 extends _i1.SmartFake implements _i18.WorkoutSession {
|
||||
_FakeWorkoutSession_18(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_19 extends _i1.SmartFake implements _i19.Log {
|
||||
_FakeLog_19(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_19(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [WgerBaseProvider].
|
||||
@@ -375,11 +355,10 @@ class MockExercisesProvider extends _i1.Mock implements _i21.ExercisesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set filteredExercises(List<_i6.Exercise>? newFilteredExercises) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#filteredExercises, newFilteredExercises),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => super.noSuchMethod(
|
||||
Invocation.setter(#filteredExercises, newFilteredExercises),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languages(List<_i10.Language>? languages) => super.noSuchMethod(
|
||||
@@ -389,8 +368,7 @@ class MockExercisesProvider extends _i1.Mock implements _i21.ExercisesProvider {
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
_i20.Future<void> setFilters(_i21.Filters? newFilters) =>
|
||||
@@ -778,16 +756,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i23.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i12.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i12.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -26,23 +26,19 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeClient_1 extends _i1.SmartFake implements _i3.Client {
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeUri_2 extends _i1.SmartFake implements Uri {
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response {
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [WgerBaseProvider].
|
||||
|
||||
@@ -34,61 +34,50 @@ import 'package:wger/providers/exercises.dart' as _i12;
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeClient_1 extends _i1.SmartFake implements _i3.Client {
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeUri_2 extends _i1.SmartFake implements Uri {
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response {
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWgerBaseProvider_4 extends _i1.SmartFake
|
||||
implements _i4.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_4 extends _i1.SmartFake implements _i4.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExerciseDatabase_5 extends _i1.SmartFake
|
||||
implements _i5.ExerciseDatabase {
|
||||
class _FakeExerciseDatabase_5 extends _i1.SmartFake implements _i5.ExerciseDatabase {
|
||||
_FakeExerciseDatabase_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExercise_6 extends _i1.SmartFake implements _i6.Exercise {
|
||||
_FakeExercise_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeExercise_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExerciseCategory_7 extends _i1.SmartFake
|
||||
implements _i7.ExerciseCategory {
|
||||
class _FakeExerciseCategory_7 extends _i1.SmartFake implements _i7.ExerciseCategory {
|
||||
_FakeExerciseCategory_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeEquipment_8 extends _i1.SmartFake implements _i8.Equipment {
|
||||
_FakeEquipment_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeEquipment_8(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeMuscle_9 extends _i1.SmartFake implements _i9.Muscle {
|
||||
_FakeMuscle_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeMuscle_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLanguage_10 extends _i1.SmartFake implements _i10.Language {
|
||||
_FakeLanguage_10(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLanguage_10(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [WgerBaseProvider].
|
||||
@@ -316,11 +305,10 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set filteredExercises(List<_i6.Exercise>? newFilteredExercises) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#filteredExercises, newFilteredExercises),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => super.noSuchMethod(
|
||||
Invocation.setter(#filteredExercises, newFilteredExercises),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languages(List<_i10.Language>? languages) => super.noSuchMethod(
|
||||
@@ -330,8 +318,7 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider {
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
_i11.Future<void> setFilters(_i12.Filters? newFilters) =>
|
||||
|
||||
@@ -26,23 +26,19 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeClient_1 extends _i1.SmartFake implements _i3.Client {
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeUri_2 extends _i1.SmartFake implements Uri {
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response {
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [WgerBaseProvider].
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
@@ -37,57 +37,47 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake
|
||||
implements _i2.WgerBaseProvider {
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit {
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeWeightUnit_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake
|
||||
implements _i4.RepetitionUnit {
|
||||
class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit {
|
||||
_FakeRepetitionUnit_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeRoutine_3 extends _i1.SmartFake implements _i5.Routine {
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeRoutine_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeDay_4 extends _i1.SmartFake implements _i6.Day {
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeDay_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlot_5 extends _i1.SmartFake implements _i7.Slot {
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlot_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSlotEntry_6 extends _i1.SmartFake implements _i8.SlotEntry {
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeSlotEntry_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeBaseConfig_7 extends _i1.SmartFake implements _i9.BaseConfig {
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeBaseConfig_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake
|
||||
implements _i10.WorkoutSession {
|
||||
class _FakeWorkoutSession_8 extends _i1.SmartFake implements _i10.WorkoutSession {
|
||||
_FakeWorkoutSession_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLog_9 extends _i1.SmartFake implements _i11.Log {
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
_FakeLog_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [RoutinesProvider].
|
||||
@@ -168,16 +158,14 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
set repetitionUnits(List<_i4.RepetitionUnit>? repetitionUnits) => super.noSuchMethod(
|
||||
Invocation.setter(#repetitionUnits, repetitionUnits),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
void clear() => super.noSuchMethod(
|
||||
|
||||
Reference in New Issue
Block a user