AppFlowy/app_flowy/lib/welcome/application/splash_bloc.freezed.dart
2021-09-06 16:18:34 +08:00

286 lines
7.2 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
// 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
part of 'splash_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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
/// @nodoc
class _$SplashEventTearOff {
const _$SplashEventTearOff();
_GetUser getUser() {
return const _GetUser();
}
}
/// @nodoc
const $SplashEvent = _$SplashEventTearOff();
/// @nodoc
mixin _$SplashEvent {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() getUser,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? getUser,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_GetUser value) getUser,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_GetUser value)? getUser,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SplashEventCopyWith<$Res> {
factory $SplashEventCopyWith(
SplashEvent value, $Res Function(SplashEvent) then) =
_$SplashEventCopyWithImpl<$Res>;
}
/// @nodoc
class _$SplashEventCopyWithImpl<$Res> implements $SplashEventCopyWith<$Res> {
_$SplashEventCopyWithImpl(this._value, this._then);
final SplashEvent _value;
// ignore: unused_field
final $Res Function(SplashEvent) _then;
}
/// @nodoc
abstract class _$GetUserCopyWith<$Res> {
factory _$GetUserCopyWith(_GetUser value, $Res Function(_GetUser) then) =
__$GetUserCopyWithImpl<$Res>;
}
/// @nodoc
class __$GetUserCopyWithImpl<$Res> extends _$SplashEventCopyWithImpl<$Res>
implements _$GetUserCopyWith<$Res> {
__$GetUserCopyWithImpl(_GetUser _value, $Res Function(_GetUser) _then)
: super(_value, (v) => _then(v as _GetUser));
@override
_GetUser get _value => super._value as _GetUser;
}
/// @nodoc
class _$_GetUser implements _GetUser {
const _$_GetUser();
@override
String toString() {
return 'SplashEvent.getUser()';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) || (other is _GetUser);
}
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() getUser,
}) {
return getUser();
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? getUser,
required TResult orElse(),
}) {
if (getUser != null) {
return getUser();
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_GetUser value) getUser,
}) {
return getUser(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_GetUser value)? getUser,
required TResult orElse(),
}) {
if (getUser != null) {
return getUser(this);
}
return orElse();
}
}
abstract class _GetUser implements SplashEvent {
const factory _GetUser() = _$_GetUser;
}
/// @nodoc
class _$SplashStateTearOff {
const _$SplashStateTearOff();
_SplashState call({required AuthState auth}) {
return _SplashState(
auth: auth,
);
}
}
/// @nodoc
const $SplashState = _$SplashStateTearOff();
/// @nodoc
mixin _$SplashState {
AuthState get auth => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SplashStateCopyWith<SplashState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SplashStateCopyWith<$Res> {
factory $SplashStateCopyWith(
SplashState value, $Res Function(SplashState) then) =
_$SplashStateCopyWithImpl<$Res>;
$Res call({AuthState auth});
$AuthStateCopyWith<$Res> get auth;
}
/// @nodoc
class _$SplashStateCopyWithImpl<$Res> implements $SplashStateCopyWith<$Res> {
_$SplashStateCopyWithImpl(this._value, this._then);
final SplashState _value;
// ignore: unused_field
final $Res Function(SplashState) _then;
@override
$Res call({
Object? auth = freezed,
}) {
return _then(_value.copyWith(
auth: auth == freezed
? _value.auth
: auth // ignore: cast_nullable_to_non_nullable
as AuthState,
));
}
@override
$AuthStateCopyWith<$Res> get auth {
return $AuthStateCopyWith<$Res>(_value.auth, (value) {
return _then(_value.copyWith(auth: value));
});
}
}
/// @nodoc
abstract class _$SplashStateCopyWith<$Res>
implements $SplashStateCopyWith<$Res> {
factory _$SplashStateCopyWith(
_SplashState value, $Res Function(_SplashState) then) =
__$SplashStateCopyWithImpl<$Res>;
@override
$Res call({AuthState auth});
@override
$AuthStateCopyWith<$Res> get auth;
}
/// @nodoc
class __$SplashStateCopyWithImpl<$Res> extends _$SplashStateCopyWithImpl<$Res>
implements _$SplashStateCopyWith<$Res> {
__$SplashStateCopyWithImpl(
_SplashState _value, $Res Function(_SplashState) _then)
: super(_value, (v) => _then(v as _SplashState));
@override
_SplashState get _value => super._value as _SplashState;
@override
$Res call({
Object? auth = freezed,
}) {
return _then(_SplashState(
auth: auth == freezed
? _value.auth
: auth // ignore: cast_nullable_to_non_nullable
as AuthState,
));
}
}
/// @nodoc
class _$_SplashState implements _SplashState {
const _$_SplashState({required this.auth});
@override
final AuthState auth;
@override
String toString() {
return 'SplashState(auth: $auth)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other is _SplashState &&
(identical(other.auth, auth) ||
const DeepCollectionEquality().equals(other.auth, auth)));
}
@override
int get hashCode =>
runtimeType.hashCode ^ const DeepCollectionEquality().hash(auth);
@JsonKey(ignore: true)
@override
_$SplashStateCopyWith<_SplashState> get copyWith =>
__$SplashStateCopyWithImpl<_SplashState>(this, _$identity);
}
abstract class _SplashState implements SplashState {
const factory _SplashState({required AuthState auth}) = _$_SplashState;
@override
AuthState get auth => throw _privateConstructorUsedError;
@override
@JsonKey(ignore: true)
_$SplashStateCopyWith<_SplashState> get copyWith =>
throw _privateConstructorUsedError;
}