123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- // coverage:ignore-file
- // 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? whenOrNull<TResult extends Object?>({
- 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? mapOrNull<TResult extends Object?>({
- 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? whenOrNull<TResult extends Object?>({
- TResult Function()? getUser,
- }) {
- return getUser?.call();
- }
- @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? mapOrNull<TResult extends Object?>({
- TResult Function(_GetUser value)? getUser,
- }) {
- return getUser?.call(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;
- }
|