Created
February 2, 2022 05:46
-
-
Save alperefesahin/4cd9b6a744ad7ca21e31706084cae9f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
part of 'auth_cubit.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 _$AuthStateTearOff { | |
const _$AuthStateTearOff(); | |
_Initial initial({required bool isSignedIn}) { | |
return _Initial( | |
isSignedIn: isSignedIn, | |
); | |
} | |
} | |
/// @nodoc | |
const $AuthState = _$AuthStateTearOff(); | |
/// @nodoc | |
mixin _$AuthState { | |
bool get isSignedIn => throw _privateConstructorUsedError; | |
@optionalTypeArgs | |
TResult when<TResult extends Object?>({ | |
required TResult Function(bool isSignedIn) initial, | |
}) => | |
throw _privateConstructorUsedError; | |
@optionalTypeArgs | |
TResult? whenOrNull<TResult extends Object?>({ | |
TResult Function(bool isSignedIn)? initial, | |
}) => | |
throw _privateConstructorUsedError; | |
@optionalTypeArgs | |
TResult maybeWhen<TResult extends Object?>({ | |
TResult Function(bool isSignedIn)? initial, | |
required TResult orElse(), | |
}) => | |
throw _privateConstructorUsedError; | |
@optionalTypeArgs | |
TResult map<TResult extends Object?>({ | |
required TResult Function(_Initial value) initial, | |
}) => | |
throw _privateConstructorUsedError; | |
@optionalTypeArgs | |
TResult? mapOrNull<TResult extends Object?>({ | |
TResult Function(_Initial value)? initial, | |
}) => | |
throw _privateConstructorUsedError; | |
@optionalTypeArgs | |
TResult maybeMap<TResult extends Object?>({ | |
TResult Function(_Initial value)? initial, | |
required TResult orElse(), | |
}) => | |
throw _privateConstructorUsedError; | |
@JsonKey(ignore: true) | |
$AuthStateCopyWith<AuthState> get copyWith => | |
throw _privateConstructorUsedError; | |
} | |
/// @nodoc | |
abstract class $AuthStateCopyWith<$Res> { | |
factory $AuthStateCopyWith(AuthState value, $Res Function(AuthState) then) = | |
_$AuthStateCopyWithImpl<$Res>; | |
$Res call({bool isSignedIn}); | |
} | |
/// @nodoc | |
class _$AuthStateCopyWithImpl<$Res> implements $AuthStateCopyWith<$Res> { | |
_$AuthStateCopyWithImpl(this._value, this._then); | |
final AuthState _value; | |
// ignore: unused_field | |
final $Res Function(AuthState) _then; | |
@override | |
$Res call({ | |
Object? isSignedIn = freezed, | |
}) { | |
return _then(_value.copyWith( | |
isSignedIn: isSignedIn == freezed | |
? _value.isSignedIn | |
: isSignedIn // ignore: cast_nullable_to_non_nullable | |
as bool, | |
)); | |
} | |
} | |
/// @nodoc | |
abstract class _$InitialCopyWith<$Res> implements $AuthStateCopyWith<$Res> { | |
factory _$InitialCopyWith(_Initial value, $Res Function(_Initial) then) = | |
__$InitialCopyWithImpl<$Res>; | |
@override | |
$Res call({bool isSignedIn}); | |
} | |
/// @nodoc | |
class __$InitialCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res> | |
implements _$InitialCopyWith<$Res> { | |
__$InitialCopyWithImpl(_Initial _value, $Res Function(_Initial) _then) | |
: super(_value, (v) => _then(v as _Initial)); | |
@override | |
_Initial get _value => super._value as _Initial; | |
@override | |
$Res call({ | |
Object? isSignedIn = freezed, | |
}) { | |
return _then(_Initial( | |
isSignedIn: isSignedIn == freezed | |
? _value.isSignedIn | |
: isSignedIn // ignore: cast_nullable_to_non_nullable | |
as bool, | |
)); | |
} | |
} | |
/// @nodoc | |
class _$_Initial implements _Initial { | |
const _$_Initial({required this.isSignedIn}); | |
@override | |
final bool isSignedIn; | |
@override | |
String toString() { | |
return 'AuthState.initial(isSignedIn: $isSignedIn)'; | |
} | |
@override | |
bool operator ==(dynamic other) { | |
return identical(this, other) || | |
(other.runtimeType == runtimeType && | |
other is _Initial && | |
const DeepCollectionEquality() | |
.equals(other.isSignedIn, isSignedIn)); | |
} | |
@override | |
int get hashCode => | |
Object.hash(runtimeType, const DeepCollectionEquality().hash(isSignedIn)); | |
@JsonKey(ignore: true) | |
@override | |
_$InitialCopyWith<_Initial> get copyWith => | |
__$InitialCopyWithImpl<_Initial>(this, _$identity); | |
@override | |
@optionalTypeArgs | |
TResult when<TResult extends Object?>({ | |
required TResult Function(bool isSignedIn) initial, | |
}) { | |
return initial(isSignedIn); | |
} | |
@override | |
@optionalTypeArgs | |
TResult? whenOrNull<TResult extends Object?>({ | |
TResult Function(bool isSignedIn)? initial, | |
}) { | |
return initial?.call(isSignedIn); | |
} | |
@override | |
@optionalTypeArgs | |
TResult maybeWhen<TResult extends Object?>({ | |
TResult Function(bool isSignedIn)? initial, | |
required TResult orElse(), | |
}) { | |
if (initial != null) { | |
return initial(isSignedIn); | |
} | |
return orElse(); | |
} | |
@override | |
@optionalTypeArgs | |
TResult map<TResult extends Object?>({ | |
required TResult Function(_Initial value) initial, | |
}) { | |
return initial(this); | |
} | |
@override | |
@optionalTypeArgs | |
TResult? mapOrNull<TResult extends Object?>({ | |
TResult Function(_Initial value)? initial, | |
}) { | |
return initial?.call(this); | |
} | |
@override | |
@optionalTypeArgs | |
TResult maybeMap<TResult extends Object?>({ | |
TResult Function(_Initial value)? initial, | |
required TResult orElse(), | |
}) { | |
if (initial != null) { | |
return initial(this); | |
} | |
return orElse(); | |
} | |
} | |
abstract class _Initial implements AuthState { | |
const factory _Initial({required bool isSignedIn}) = _$_Initial; | |
@override | |
bool get isSignedIn; | |
@override | |
@JsonKey(ignore: true) | |
_$InitialCopyWith<_Initial> get copyWith => | |
throw _privateConstructorUsedError; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment