|
|
|
@@ -0,0 +1,388 @@
|
|
|
|
|
// 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 'ferris_wheel_loader_bloc.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 _$FerrisWheelLoaderEvent {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() fetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? fetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? fetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $FerrisWheelLoaderEventCopyWith<$Res> {
|
|
|
|
|
factory $FerrisWheelLoaderEventCopyWith(
|
|
|
|
|
FerrisWheelLoaderEvent value,
|
|
|
|
|
$Res Function(FerrisWheelLoaderEvent) then,
|
|
|
|
|
) = _$FerrisWheelLoaderEventCopyWithImpl<$Res, FerrisWheelLoaderEvent>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$FerrisWheelLoaderEventCopyWithImpl<
|
|
|
|
|
$Res,
|
|
|
|
|
$Val extends FerrisWheelLoaderEvent
|
|
|
|
|
>
|
|
|
|
|
implements $FerrisWheelLoaderEventCopyWith<$Res> {
|
|
|
|
|
_$FerrisWheelLoaderEventCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$FetchedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$FetchedImplCopyWith(
|
|
|
|
|
_$FetchedImpl value,
|
|
|
|
|
$Res Function(_$FetchedImpl) then,
|
|
|
|
|
) = __$$FetchedImplCopyWithImpl<$Res>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$FetchedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$FerrisWheelLoaderEventCopyWithImpl<$Res, _$FetchedImpl>
|
|
|
|
|
implements _$$FetchedImplCopyWith<$Res> {
|
|
|
|
|
__$$FetchedImplCopyWithImpl(
|
|
|
|
|
_$FetchedImpl _value,
|
|
|
|
|
$Res Function(_$FetchedImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$FetchedImpl implements _Fetched {
|
|
|
|
|
const _$FetchedImpl();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'FerrisWheelLoaderEvent.fetched()';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType && other is _$FetchedImpl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({required TResult Function() fetched}) {
|
|
|
|
|
return fetched();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({TResult? Function()? fetched}) {
|
|
|
|
|
return fetched?.call();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? fetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (fetched != null) {
|
|
|
|
|
return fetched();
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
}) {
|
|
|
|
|
return fetched(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
}) {
|
|
|
|
|
return fetched?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (fetched != null) {
|
|
|
|
|
return fetched(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _Fetched implements FerrisWheelLoaderEvent {
|
|
|
|
|
const factory _Fetched() = _$FetchedImpl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$FerrisWheelLoaderState {
|
|
|
|
|
Game get ferrisWheel => throw _privateConstructorUsedError;
|
|
|
|
|
Option<GameFailure> get failureOptionFerrisWheel =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
bool get isFetching => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$FerrisWheelLoaderStateCopyWith<FerrisWheelLoaderState> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $FerrisWheelLoaderStateCopyWith<$Res> {
|
|
|
|
|
factory $FerrisWheelLoaderStateCopyWith(
|
|
|
|
|
FerrisWheelLoaderState value,
|
|
|
|
|
$Res Function(FerrisWheelLoaderState) then,
|
|
|
|
|
) = _$FerrisWheelLoaderStateCopyWithImpl<$Res, FerrisWheelLoaderState>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
Game ferrisWheel,
|
|
|
|
|
Option<GameFailure> failureOptionFerrisWheel,
|
|
|
|
|
bool isFetching,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$GameCopyWith<$Res> get ferrisWheel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$FerrisWheelLoaderStateCopyWithImpl<
|
|
|
|
|
$Res,
|
|
|
|
|
$Val extends FerrisWheelLoaderState
|
|
|
|
|
>
|
|
|
|
|
implements $FerrisWheelLoaderStateCopyWith<$Res> {
|
|
|
|
|
_$FerrisWheelLoaderStateCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? ferrisWheel = null,
|
|
|
|
|
Object? failureOptionFerrisWheel = null,
|
|
|
|
|
Object? isFetching = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
ferrisWheel: null == ferrisWheel
|
|
|
|
|
? _value.ferrisWheel
|
|
|
|
|
: ferrisWheel // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Game,
|
|
|
|
|
failureOptionFerrisWheel: null == failureOptionFerrisWheel
|
|
|
|
|
? _value.failureOptionFerrisWheel
|
|
|
|
|
: failureOptionFerrisWheel // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Option<GameFailure>,
|
|
|
|
|
isFetching: null == isFetching
|
|
|
|
|
? _value.isFetching
|
|
|
|
|
: isFetching // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$GameCopyWith<$Res> get ferrisWheel {
|
|
|
|
|
return $GameCopyWith<$Res>(_value.ferrisWheel, (value) {
|
|
|
|
|
return _then(_value.copyWith(ferrisWheel: value) as $Val);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$FerrisWheelLoaderStateImplCopyWith<$Res>
|
|
|
|
|
implements $FerrisWheelLoaderStateCopyWith<$Res> {
|
|
|
|
|
factory _$$FerrisWheelLoaderStateImplCopyWith(
|
|
|
|
|
_$FerrisWheelLoaderStateImpl value,
|
|
|
|
|
$Res Function(_$FerrisWheelLoaderStateImpl) then,
|
|
|
|
|
) = __$$FerrisWheelLoaderStateImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
Game ferrisWheel,
|
|
|
|
|
Option<GameFailure> failureOptionFerrisWheel,
|
|
|
|
|
bool isFetching,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
$GameCopyWith<$Res> get ferrisWheel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$FerrisWheelLoaderStateImplCopyWithImpl<$Res>
|
|
|
|
|
extends
|
|
|
|
|
_$FerrisWheelLoaderStateCopyWithImpl<$Res, _$FerrisWheelLoaderStateImpl>
|
|
|
|
|
implements _$$FerrisWheelLoaderStateImplCopyWith<$Res> {
|
|
|
|
|
__$$FerrisWheelLoaderStateImplCopyWithImpl(
|
|
|
|
|
_$FerrisWheelLoaderStateImpl _value,
|
|
|
|
|
$Res Function(_$FerrisWheelLoaderStateImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? ferrisWheel = null,
|
|
|
|
|
Object? failureOptionFerrisWheel = null,
|
|
|
|
|
Object? isFetching = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$FerrisWheelLoaderStateImpl(
|
|
|
|
|
ferrisWheel: null == ferrisWheel
|
|
|
|
|
? _value.ferrisWheel
|
|
|
|
|
: ferrisWheel // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Game,
|
|
|
|
|
failureOptionFerrisWheel: null == failureOptionFerrisWheel
|
|
|
|
|
? _value.failureOptionFerrisWheel
|
|
|
|
|
: failureOptionFerrisWheel // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Option<GameFailure>,
|
|
|
|
|
isFetching: null == isFetching
|
|
|
|
|
? _value.isFetching
|
|
|
|
|
: isFetching // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$FerrisWheelLoaderStateImpl implements _FerrisWheelLoaderState {
|
|
|
|
|
const _$FerrisWheelLoaderStateImpl({
|
|
|
|
|
required this.ferrisWheel,
|
|
|
|
|
required this.failureOptionFerrisWheel,
|
|
|
|
|
this.isFetching = false,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final Game ferrisWheel;
|
|
|
|
|
@override
|
|
|
|
|
final Option<GameFailure> failureOptionFerrisWheel;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final bool isFetching;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'FerrisWheelLoaderState(ferrisWheel: $ferrisWheel, failureOptionFerrisWheel: $failureOptionFerrisWheel, isFetching: $isFetching)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$FerrisWheelLoaderStateImpl &&
|
|
|
|
|
(identical(other.ferrisWheel, ferrisWheel) ||
|
|
|
|
|
other.ferrisWheel == ferrisWheel) &&
|
|
|
|
|
(identical(
|
|
|
|
|
other.failureOptionFerrisWheel,
|
|
|
|
|
failureOptionFerrisWheel,
|
|
|
|
|
) ||
|
|
|
|
|
other.failureOptionFerrisWheel == failureOptionFerrisWheel) &&
|
|
|
|
|
(identical(other.isFetching, isFetching) ||
|
|
|
|
|
other.isFetching == isFetching));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
ferrisWheel,
|
|
|
|
|
failureOptionFerrisWheel,
|
|
|
|
|
isFetching,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$FerrisWheelLoaderStateImplCopyWith<_$FerrisWheelLoaderStateImpl>
|
|
|
|
|
get copyWith =>
|
|
|
|
|
__$$FerrisWheelLoaderStateImplCopyWithImpl<_$FerrisWheelLoaderStateImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _FerrisWheelLoaderState implements FerrisWheelLoaderState {
|
|
|
|
|
const factory _FerrisWheelLoaderState({
|
|
|
|
|
required final Game ferrisWheel,
|
|
|
|
|
required final Option<GameFailure> failureOptionFerrisWheel,
|
|
|
|
|
final bool isFetching,
|
|
|
|
|
}) = _$FerrisWheelLoaderStateImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Game get ferrisWheel;
|
|
|
|
|
@override
|
|
|
|
|
Option<GameFailure> get failureOptionFerrisWheel;
|
|
|
|
|
@override
|
|
|
|
|
bool get isFetching;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of FerrisWheelLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$FerrisWheelLoaderStateImplCopyWith<_$FerrisWheelLoaderStateImpl>
|
|
|
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
}
|