459 lines
12 KiB
Dart
459 lines
12 KiB
Dart
// 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 '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 information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
|
);
|
|
|
|
/// @nodoc
|
|
mixin _$AuthState {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() email,
|
|
required TResult Function(String email, String uuid) code,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? email,
|
|
TResult? Function(String email, String uuid)? code,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? email,
|
|
TResult Function(String email, String uuid)? code,
|
|
required TResult orElse(),
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Initial value) initial,
|
|
required TResult Function(_Email value) email,
|
|
required TResult Function(_Code value) code,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Initial value)? initial,
|
|
TResult? Function(_Email value)? email,
|
|
TResult? Function(_Code value)? code,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Initial value)? initial,
|
|
TResult Function(_Email value)? email,
|
|
TResult Function(_Code value)? code,
|
|
required TResult orElse(),
|
|
}) => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AuthStateCopyWith<$Res> {
|
|
factory $AuthStateCopyWith(AuthState value, $Res Function(AuthState) then) =
|
|
_$AuthStateCopyWithImpl<$Res, AuthState>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AuthStateCopyWithImpl<$Res, $Val extends AuthState>
|
|
implements $AuthStateCopyWith<$Res> {
|
|
_$AuthStateCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AuthState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$InitialImplCopyWith<$Res> {
|
|
factory _$$InitialImplCopyWith(
|
|
_$InitialImpl value,
|
|
$Res Function(_$InitialImpl) then,
|
|
) = __$$InitialImplCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$InitialImplCopyWithImpl<$Res>
|
|
extends _$AuthStateCopyWithImpl<$Res, _$InitialImpl>
|
|
implements _$$InitialImplCopyWith<$Res> {
|
|
__$$InitialImplCopyWithImpl(
|
|
_$InitialImpl _value,
|
|
$Res Function(_$InitialImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AuthState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$InitialImpl implements _Initial {
|
|
const _$InitialImpl();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthState.initial()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$InitialImpl);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() email,
|
|
required TResult Function(String email, String uuid) code,
|
|
}) {
|
|
return initial();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? email,
|
|
TResult? Function(String email, String uuid)? code,
|
|
}) {
|
|
return initial?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? email,
|
|
TResult Function(String email, String uuid)? code,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (initial != null) {
|
|
return initial();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Initial value) initial,
|
|
required TResult Function(_Email value) email,
|
|
required TResult Function(_Code value) code,
|
|
}) {
|
|
return initial(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Initial value)? initial,
|
|
TResult? Function(_Email value)? email,
|
|
TResult? Function(_Code value)? code,
|
|
}) {
|
|
return initial?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Initial value)? initial,
|
|
TResult Function(_Email value)? email,
|
|
TResult Function(_Code value)? code,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (initial != null) {
|
|
return initial(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Initial implements AuthState {
|
|
const factory _Initial() = _$InitialImpl;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$EmailImplCopyWith<$Res> {
|
|
factory _$$EmailImplCopyWith(
|
|
_$EmailImpl value,
|
|
$Res Function(_$EmailImpl) then,
|
|
) = __$$EmailImplCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$EmailImplCopyWithImpl<$Res>
|
|
extends _$AuthStateCopyWithImpl<$Res, _$EmailImpl>
|
|
implements _$$EmailImplCopyWith<$Res> {
|
|
__$$EmailImplCopyWithImpl(
|
|
_$EmailImpl _value,
|
|
$Res Function(_$EmailImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AuthState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$EmailImpl implements _Email {
|
|
const _$EmailImpl();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthState.email()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$EmailImpl);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() email,
|
|
required TResult Function(String email, String uuid) code,
|
|
}) {
|
|
return email();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? email,
|
|
TResult? Function(String email, String uuid)? code,
|
|
}) {
|
|
return email?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? email,
|
|
TResult Function(String email, String uuid)? code,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (email != null) {
|
|
return email();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Initial value) initial,
|
|
required TResult Function(_Email value) email,
|
|
required TResult Function(_Code value) code,
|
|
}) {
|
|
return email(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Initial value)? initial,
|
|
TResult? Function(_Email value)? email,
|
|
TResult? Function(_Code value)? code,
|
|
}) {
|
|
return email?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Initial value)? initial,
|
|
TResult Function(_Email value)? email,
|
|
TResult Function(_Code value)? code,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (email != null) {
|
|
return email(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Email implements AuthState {
|
|
const factory _Email() = _$EmailImpl;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CodeImplCopyWith<$Res> {
|
|
factory _$$CodeImplCopyWith(
|
|
_$CodeImpl value,
|
|
$Res Function(_$CodeImpl) then,
|
|
) = __$$CodeImplCopyWithImpl<$Res>;
|
|
@useResult
|
|
$Res call({String email, String uuid});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CodeImplCopyWithImpl<$Res>
|
|
extends _$AuthStateCopyWithImpl<$Res, _$CodeImpl>
|
|
implements _$$CodeImplCopyWith<$Res> {
|
|
__$$CodeImplCopyWithImpl(_$CodeImpl _value, $Res Function(_$CodeImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of AuthState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({Object? email = null, Object? uuid = null}) {
|
|
return _then(
|
|
_$CodeImpl(
|
|
null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
null == uuid
|
|
? _value.uuid
|
|
: uuid // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$CodeImpl implements _Code {
|
|
const _$CodeImpl(this.email, this.uuid);
|
|
|
|
@override
|
|
final String email;
|
|
@override
|
|
final String uuid;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthState.code(email: $email, uuid: $uuid)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CodeImpl &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.uuid, uuid) || other.uuid == uuid));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, email, uuid);
|
|
|
|
/// Create a copy of AuthState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CodeImplCopyWith<_$CodeImpl> get copyWith =>
|
|
__$$CodeImplCopyWithImpl<_$CodeImpl>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() email,
|
|
required TResult Function(String email, String uuid) code,
|
|
}) {
|
|
return code(this.email, uuid);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? email,
|
|
TResult? Function(String email, String uuid)? code,
|
|
}) {
|
|
return code?.call(this.email, uuid);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? email,
|
|
TResult Function(String email, String uuid)? code,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (code != null) {
|
|
return code(this.email, uuid);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Initial value) initial,
|
|
required TResult Function(_Email value) email,
|
|
required TResult Function(_Code value) code,
|
|
}) {
|
|
return code(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Initial value)? initial,
|
|
TResult? Function(_Email value)? email,
|
|
TResult? Function(_Code value)? code,
|
|
}) {
|
|
return code?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Initial value)? initial,
|
|
TResult Function(_Email value)? email,
|
|
TResult Function(_Code value)? code,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (code != null) {
|
|
return code(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Code implements AuthState {
|
|
const factory _Code(final String email, final String uuid) = _$CodeImpl;
|
|
|
|
String get email;
|
|
String get uuid;
|
|
|
|
/// Create a copy of AuthState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CodeImplCopyWith<_$CodeImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|