Initial commit
This commit is contained in:
@@ -0,0 +1,293 @@
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||||
|
||||
part of 'workout_session_state.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
final _privateConstructorUsedError = UnsupportedError(
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
||||
);
|
||||
|
||||
/// @nodoc
|
||||
mixin _$WorkoutSessionState {
|
||||
List<WorkoutActivityEntity> get activities =>
|
||||
throw _privateConstructorUsedError;
|
||||
int get currentIndex => throw _privateConstructorUsedError;
|
||||
int get timeRemaining => throw _privateConstructorUsedError;
|
||||
int get totalTimeElapsed => throw _privateConstructorUsedError;
|
||||
bool get isRunning => throw _privateConstructorUsedError;
|
||||
bool get isFinished => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of WorkoutSessionState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$WorkoutSessionStateCopyWith<WorkoutSessionState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $WorkoutSessionStateCopyWith<$Res> {
|
||||
factory $WorkoutSessionStateCopyWith(
|
||||
WorkoutSessionState value,
|
||||
$Res Function(WorkoutSessionState) then,
|
||||
) = _$WorkoutSessionStateCopyWithImpl<$Res, WorkoutSessionState>;
|
||||
@useResult
|
||||
$Res call({
|
||||
List<WorkoutActivityEntity> activities,
|
||||
int currentIndex,
|
||||
int timeRemaining,
|
||||
int totalTimeElapsed,
|
||||
bool isRunning,
|
||||
bool isFinished,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$WorkoutSessionStateCopyWithImpl<$Res, $Val extends WorkoutSessionState>
|
||||
implements $WorkoutSessionStateCopyWith<$Res> {
|
||||
_$WorkoutSessionStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of WorkoutSessionState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? activities = null,
|
||||
Object? currentIndex = null,
|
||||
Object? timeRemaining = null,
|
||||
Object? totalTimeElapsed = null,
|
||||
Object? isRunning = null,
|
||||
Object? isFinished = null,
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
activities: null == activities
|
||||
? _value.activities
|
||||
: activities // ignore: cast_nullable_to_non_nullable
|
||||
as List<WorkoutActivityEntity>,
|
||||
currentIndex: null == currentIndex
|
||||
? _value.currentIndex
|
||||
: currentIndex // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
timeRemaining: null == timeRemaining
|
||||
? _value.timeRemaining
|
||||
: timeRemaining // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
totalTimeElapsed: null == totalTimeElapsed
|
||||
? _value.totalTimeElapsed
|
||||
: totalTimeElapsed // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
isRunning: null == isRunning
|
||||
? _value.isRunning
|
||||
: isRunning // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFinished: null == isFinished
|
||||
? _value.isFinished
|
||||
: isFinished // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$WorkoutSessionStateImplCopyWith<$Res>
|
||||
implements $WorkoutSessionStateCopyWith<$Res> {
|
||||
factory _$$WorkoutSessionStateImplCopyWith(
|
||||
_$WorkoutSessionStateImpl value,
|
||||
$Res Function(_$WorkoutSessionStateImpl) then,
|
||||
) = __$$WorkoutSessionStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
List<WorkoutActivityEntity> activities,
|
||||
int currentIndex,
|
||||
int timeRemaining,
|
||||
int totalTimeElapsed,
|
||||
bool isRunning,
|
||||
bool isFinished,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$WorkoutSessionStateImplCopyWithImpl<$Res>
|
||||
extends _$WorkoutSessionStateCopyWithImpl<$Res, _$WorkoutSessionStateImpl>
|
||||
implements _$$WorkoutSessionStateImplCopyWith<$Res> {
|
||||
__$$WorkoutSessionStateImplCopyWithImpl(
|
||||
_$WorkoutSessionStateImpl _value,
|
||||
$Res Function(_$WorkoutSessionStateImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of WorkoutSessionState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? activities = null,
|
||||
Object? currentIndex = null,
|
||||
Object? timeRemaining = null,
|
||||
Object? totalTimeElapsed = null,
|
||||
Object? isRunning = null,
|
||||
Object? isFinished = null,
|
||||
}) {
|
||||
return _then(
|
||||
_$WorkoutSessionStateImpl(
|
||||
activities: null == activities
|
||||
? _value._activities
|
||||
: activities // ignore: cast_nullable_to_non_nullable
|
||||
as List<WorkoutActivityEntity>,
|
||||
currentIndex: null == currentIndex
|
||||
? _value.currentIndex
|
||||
: currentIndex // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
timeRemaining: null == timeRemaining
|
||||
? _value.timeRemaining
|
||||
: timeRemaining // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
totalTimeElapsed: null == totalTimeElapsed
|
||||
? _value.totalTimeElapsed
|
||||
: totalTimeElapsed // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
isRunning: null == isRunning
|
||||
? _value.isRunning
|
||||
: isRunning // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFinished: null == isFinished
|
||||
? _value.isFinished
|
||||
: isFinished // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$WorkoutSessionStateImpl extends _WorkoutSessionState {
|
||||
const _$WorkoutSessionStateImpl({
|
||||
required final List<WorkoutActivityEntity> activities,
|
||||
this.currentIndex = 0,
|
||||
this.timeRemaining = 0,
|
||||
this.totalTimeElapsed = 0,
|
||||
this.isRunning = false,
|
||||
this.isFinished = false,
|
||||
}) : _activities = activities,
|
||||
super._();
|
||||
|
||||
final List<WorkoutActivityEntity> _activities;
|
||||
@override
|
||||
List<WorkoutActivityEntity> get activities {
|
||||
if (_activities is EqualUnmodifiableListView) return _activities;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_activities);
|
||||
}
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final int currentIndex;
|
||||
@override
|
||||
@JsonKey()
|
||||
final int timeRemaining;
|
||||
@override
|
||||
@JsonKey()
|
||||
final int totalTimeElapsed;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isRunning;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isFinished;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'WorkoutSessionState(activities: $activities, currentIndex: $currentIndex, timeRemaining: $timeRemaining, totalTimeElapsed: $totalTimeElapsed, isRunning: $isRunning, isFinished: $isFinished)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$WorkoutSessionStateImpl &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other._activities,
|
||||
_activities,
|
||||
) &&
|
||||
(identical(other.currentIndex, currentIndex) ||
|
||||
other.currentIndex == currentIndex) &&
|
||||
(identical(other.timeRemaining, timeRemaining) ||
|
||||
other.timeRemaining == timeRemaining) &&
|
||||
(identical(other.totalTimeElapsed, totalTimeElapsed) ||
|
||||
other.totalTimeElapsed == totalTimeElapsed) &&
|
||||
(identical(other.isRunning, isRunning) ||
|
||||
other.isRunning == isRunning) &&
|
||||
(identical(other.isFinished, isFinished) ||
|
||||
other.isFinished == isFinished));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(_activities),
|
||||
currentIndex,
|
||||
timeRemaining,
|
||||
totalTimeElapsed,
|
||||
isRunning,
|
||||
isFinished,
|
||||
);
|
||||
|
||||
/// Create a copy of WorkoutSessionState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$WorkoutSessionStateImplCopyWith<_$WorkoutSessionStateImpl> get copyWith =>
|
||||
__$$WorkoutSessionStateImplCopyWithImpl<_$WorkoutSessionStateImpl>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class _WorkoutSessionState extends WorkoutSessionState {
|
||||
const factory _WorkoutSessionState({
|
||||
required final List<WorkoutActivityEntity> activities,
|
||||
final int currentIndex,
|
||||
final int timeRemaining,
|
||||
final int totalTimeElapsed,
|
||||
final bool isRunning,
|
||||
final bool isFinished,
|
||||
}) = _$WorkoutSessionStateImpl;
|
||||
const _WorkoutSessionState._() : super._();
|
||||
|
||||
@override
|
||||
List<WorkoutActivityEntity> get activities;
|
||||
@override
|
||||
int get currentIndex;
|
||||
@override
|
||||
int get timeRemaining;
|
||||
@override
|
||||
int get totalTimeElapsed;
|
||||
@override
|
||||
bool get isRunning;
|
||||
@override
|
||||
bool get isFinished;
|
||||
|
||||
/// Create a copy of WorkoutSessionState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$WorkoutSessionStateImplCopyWith<_$WorkoutSessionStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
Reference in New Issue
Block a user