AppFlowy/app_flowy/lib/user/application/splash_bloc.freezed.dart

286 lines
7.2 KiB
Dart
Raw Normal View History

2021-06-19 15:41:19 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
2021-07-28 05:41:39 +00:00
// 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
2021-06-19 15:41:19 +00:00
2021-09-06 08:18:34 +00:00
part of 'splash_bloc.dart';
2021-06-19 15:41:19 +00:00
// **************************************************************************
// 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
2021-09-06 08:18:34 +00:00
class _$SplashEventTearOff {
const _$SplashEventTearOff();
2021-06-19 15:41:19 +00:00
2021-07-12 15:27:58 +00:00
_GetUser getUser() {
return const _GetUser();
2021-06-19 15:41:19 +00:00
}
}
/// @nodoc
2021-09-06 08:18:34 +00:00
const $SplashEvent = _$SplashEventTearOff();
2021-06-19 15:41:19 +00:00
/// @nodoc
2021-09-06 08:18:34 +00:00
mixin _$SplashEvent {
2021-06-19 15:41:19 +00:00
@optionalTypeArgs
TResult when<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
required TResult Function() getUser,
2021-06-19 15:41:19 +00:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
TResult Function()? getUser,
2021-06-19 15:41:19 +00:00
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
required TResult Function(_GetUser value) getUser,
2021-06-19 15:41:19 +00:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
TResult Function(_GetUser value)? getUser,
2021-06-19 15:41:19 +00:00
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
2021-09-06 08:18:34 +00:00
abstract class $SplashEventCopyWith<$Res> {
factory $SplashEventCopyWith(
SplashEvent value, $Res Function(SplashEvent) then) =
_$SplashEventCopyWithImpl<$Res>;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-09-06 08:18:34 +00:00
class _$SplashEventCopyWithImpl<$Res> implements $SplashEventCopyWith<$Res> {
_$SplashEventCopyWithImpl(this._value, this._then);
2021-06-19 15:41:19 +00:00
2021-09-06 08:18:34 +00:00
final SplashEvent _value;
2021-06-19 15:41:19 +00:00
// ignore: unused_field
2021-09-06 08:18:34 +00:00
final $Res Function(SplashEvent) _then;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-07-12 15:27:58 +00:00
abstract class _$GetUserCopyWith<$Res> {
factory _$GetUserCopyWith(_GetUser value, $Res Function(_GetUser) then) =
__$GetUserCopyWithImpl<$Res>;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-09-06 08:18:34 +00:00
class __$GetUserCopyWithImpl<$Res> extends _$SplashEventCopyWithImpl<$Res>
2021-07-12 15:27:58 +00:00
implements _$GetUserCopyWith<$Res> {
__$GetUserCopyWithImpl(_GetUser _value, $Res Function(_GetUser) _then)
: super(_value, (v) => _then(v as _GetUser));
2021-06-19 15:41:19 +00:00
@override
2021-07-12 15:27:58 +00:00
_GetUser get _value => super._value as _GetUser;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-07-12 15:27:58 +00:00
class _$_GetUser implements _GetUser {
const _$_GetUser();
2021-06-19 15:41:19 +00:00
@override
String toString() {
2021-09-06 08:18:34 +00:00
return 'SplashEvent.getUser()';
2021-06-19 15:41:19 +00:00
}
@override
bool operator ==(dynamic other) {
2021-07-12 15:27:58 +00:00
return identical(this, other) || (other is _GetUser);
2021-06-19 15:41:19 +00:00
}
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
required TResult Function() getUser,
2021-06-19 15:41:19 +00:00
}) {
2021-07-12 15:27:58 +00:00
return getUser();
2021-06-19 15:41:19 +00:00
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
TResult Function()? getUser,
2021-06-19 15:41:19 +00:00
required TResult orElse(),
}) {
2021-07-12 15:27:58 +00:00
if (getUser != null) {
return getUser();
2021-06-19 15:41:19 +00:00
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
required TResult Function(_GetUser value) getUser,
2021-06-19 15:41:19 +00:00
}) {
2021-07-12 15:27:58 +00:00
return getUser(this);
2021-06-19 15:41:19 +00:00
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
2021-07-12 15:27:58 +00:00
TResult Function(_GetUser value)? getUser,
2021-06-19 15:41:19 +00:00
required TResult orElse(),
}) {
2021-07-12 15:27:58 +00:00
if (getUser != null) {
return getUser(this);
2021-06-19 15:41:19 +00:00
}
return orElse();
}
}
2021-09-06 08:18:34 +00:00
abstract class _GetUser implements SplashEvent {
2021-07-12 15:27:58 +00:00
const factory _GetUser() = _$_GetUser;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-09-06 08:18:34 +00:00
class _$SplashStateTearOff {
const _$SplashStateTearOff();
2021-06-19 15:41:19 +00:00
2021-09-06 08:18:34 +00:00
_SplashState call({required AuthState auth}) {
return _SplashState(
2021-06-19 15:41:19 +00:00
auth: auth,
);
}
}
/// @nodoc
2021-09-06 08:18:34 +00:00
const $SplashState = _$SplashStateTearOff();
2021-06-19 15:41:19 +00:00
/// @nodoc
2021-09-06 08:18:34 +00:00
mixin _$SplashState {
2021-06-19 15:41:19 +00:00
AuthState get auth => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
2021-09-06 08:18:34 +00:00
$SplashStateCopyWith<SplashState> get copyWith =>
2021-06-19 15:41:19 +00:00
throw _privateConstructorUsedError;
}
/// @nodoc
2021-09-06 08:18:34 +00:00
abstract class $SplashStateCopyWith<$Res> {
factory $SplashStateCopyWith(
SplashState value, $Res Function(SplashState) then) =
_$SplashStateCopyWithImpl<$Res>;
2021-06-19 15:41:19 +00:00
$Res call({AuthState auth});
$AuthStateCopyWith<$Res> get auth;
}
/// @nodoc
2021-09-06 08:18:34 +00:00
class _$SplashStateCopyWithImpl<$Res> implements $SplashStateCopyWith<$Res> {
_$SplashStateCopyWithImpl(this._value, this._then);
2021-06-19 15:41:19 +00:00
2021-09-06 08:18:34 +00:00
final SplashState _value;
2021-06-19 15:41:19 +00:00
// ignore: unused_field
2021-09-06 08:18:34 +00:00
final $Res Function(SplashState) _then;
2021-06-19 15:41:19 +00:00
@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
2021-09-06 08:18:34 +00:00
abstract class _$SplashStateCopyWith<$Res>
implements $SplashStateCopyWith<$Res> {
factory _$SplashStateCopyWith(
_SplashState value, $Res Function(_SplashState) then) =
__$SplashStateCopyWithImpl<$Res>;
2021-06-19 15:41:19 +00:00
@override
$Res call({AuthState auth});
@override
$AuthStateCopyWith<$Res> get auth;
}
/// @nodoc
2021-09-06 08:18:34 +00:00
class __$SplashStateCopyWithImpl<$Res> extends _$SplashStateCopyWithImpl<$Res>
implements _$SplashStateCopyWith<$Res> {
__$SplashStateCopyWithImpl(
_SplashState _value, $Res Function(_SplashState) _then)
: super(_value, (v) => _then(v as _SplashState));
2021-06-19 15:41:19 +00:00
@override
2021-09-06 08:18:34 +00:00
_SplashState get _value => super._value as _SplashState;
2021-06-19 15:41:19 +00:00
@override
$Res call({
Object? auth = freezed,
}) {
2021-09-06 08:18:34 +00:00
return _then(_SplashState(
2021-06-19 15:41:19 +00:00
auth: auth == freezed
? _value.auth
: auth // ignore: cast_nullable_to_non_nullable
as AuthState,
));
}
}
/// @nodoc
2021-09-06 08:18:34 +00:00
class _$_SplashState implements _SplashState {
const _$_SplashState({required this.auth});
2021-06-19 15:41:19 +00:00
@override
final AuthState auth;
@override
String toString() {
2021-09-06 08:18:34 +00:00
return 'SplashState(auth: $auth)';
2021-06-19 15:41:19 +00:00
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
2021-09-06 08:18:34 +00:00
(other is _SplashState &&
2021-06-19 15:41:19 +00:00
(identical(other.auth, auth) ||
const DeepCollectionEquality().equals(other.auth, auth)));
}
@override
int get hashCode =>
runtimeType.hashCode ^ const DeepCollectionEquality().hash(auth);
@JsonKey(ignore: true)
@override
2021-09-06 08:18:34 +00:00
_$SplashStateCopyWith<_SplashState> get copyWith =>
__$SplashStateCopyWithImpl<_SplashState>(this, _$identity);
2021-06-19 15:41:19 +00:00
}
2021-09-06 08:18:34 +00:00
abstract class _SplashState implements SplashState {
const factory _SplashState({required AuthState auth}) = _$_SplashState;
2021-06-19 15:41:19 +00:00
@override
AuthState get auth => throw _privateConstructorUsedError;
@override
@JsonKey(ignore: true)
2021-09-06 08:18:34 +00:00
_$SplashStateCopyWith<_SplashState> get copyWith =>
2021-06-19 15:41:19 +00:00
throw _privateConstructorUsedError;
}