|
|
|
@@ -0,0 +1,738 @@
|
|
|
|
|
// 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 'resend_form_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 information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$ResendFormEvent {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(String phoneNumber) phoneNumberChanged,
|
|
|
|
|
required TResult Function(String purpose) purposeChanged,
|
|
|
|
|
required TResult Function() submitted,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult? Function()? submitted,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult Function()? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_PhoneNumberChanged value) phoneNumberChanged,
|
|
|
|
|
required TResult Function(_PurposeChanged value) purposeChanged,
|
|
|
|
|
required TResult Function(_Submitted value) submitted,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult? Function(_Submitted value)? submitted,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult Function(_Submitted value)? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $ResendFormEventCopyWith<$Res> {
|
|
|
|
|
factory $ResendFormEventCopyWith(
|
|
|
|
|
ResendFormEvent value,
|
|
|
|
|
$Res Function(ResendFormEvent) then,
|
|
|
|
|
) = _$ResendFormEventCopyWithImpl<$Res, ResendFormEvent>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$ResendFormEventCopyWithImpl<$Res, $Val extends ResendFormEvent>
|
|
|
|
|
implements $ResendFormEventCopyWith<$Res> {
|
|
|
|
|
_$ResendFormEventCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$PhoneNumberChangedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$PhoneNumberChangedImplCopyWith(
|
|
|
|
|
_$PhoneNumberChangedImpl value,
|
|
|
|
|
$Res Function(_$PhoneNumberChangedImpl) then,
|
|
|
|
|
) = __$$PhoneNumberChangedImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String phoneNumber});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$PhoneNumberChangedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ResendFormEventCopyWithImpl<$Res, _$PhoneNumberChangedImpl>
|
|
|
|
|
implements _$$PhoneNumberChangedImplCopyWith<$Res> {
|
|
|
|
|
__$$PhoneNumberChangedImplCopyWithImpl(
|
|
|
|
|
_$PhoneNumberChangedImpl _value,
|
|
|
|
|
$Res Function(_$PhoneNumberChangedImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({Object? phoneNumber = null}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$PhoneNumberChangedImpl(
|
|
|
|
|
null == phoneNumber
|
|
|
|
|
? _value.phoneNumber
|
|
|
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$PhoneNumberChangedImpl implements _PhoneNumberChanged {
|
|
|
|
|
const _$PhoneNumberChangedImpl(this.phoneNumber);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String phoneNumber;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'ResendFormEvent.phoneNumberChanged(phoneNumber: $phoneNumber)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$PhoneNumberChangedImpl &&
|
|
|
|
|
(identical(other.phoneNumber, phoneNumber) ||
|
|
|
|
|
other.phoneNumber == phoneNumber));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, phoneNumber);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$PhoneNumberChangedImplCopyWith<_$PhoneNumberChangedImpl> get copyWith =>
|
|
|
|
|
__$$PhoneNumberChangedImplCopyWithImpl<_$PhoneNumberChangedImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(String phoneNumber) phoneNumberChanged,
|
|
|
|
|
required TResult Function(String purpose) purposeChanged,
|
|
|
|
|
required TResult Function() submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return phoneNumberChanged(phoneNumber);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult? Function()? submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return phoneNumberChanged?.call(phoneNumber);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult Function()? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (phoneNumberChanged != null) {
|
|
|
|
|
return phoneNumberChanged(phoneNumber);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_PhoneNumberChanged value) phoneNumberChanged,
|
|
|
|
|
required TResult Function(_PurposeChanged value) purposeChanged,
|
|
|
|
|
required TResult Function(_Submitted value) submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return phoneNumberChanged(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult? Function(_Submitted value)? submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return phoneNumberChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult Function(_Submitted value)? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (phoneNumberChanged != null) {
|
|
|
|
|
return phoneNumberChanged(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _PhoneNumberChanged implements ResendFormEvent {
|
|
|
|
|
const factory _PhoneNumberChanged(final String phoneNumber) =
|
|
|
|
|
_$PhoneNumberChangedImpl;
|
|
|
|
|
|
|
|
|
|
String get phoneNumber;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$PhoneNumberChangedImplCopyWith<_$PhoneNumberChangedImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$PurposeChangedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$PurposeChangedImplCopyWith(
|
|
|
|
|
_$PurposeChangedImpl value,
|
|
|
|
|
$Res Function(_$PurposeChangedImpl) then,
|
|
|
|
|
) = __$$PurposeChangedImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String purpose});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$PurposeChangedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ResendFormEventCopyWithImpl<$Res, _$PurposeChangedImpl>
|
|
|
|
|
implements _$$PurposeChangedImplCopyWith<$Res> {
|
|
|
|
|
__$$PurposeChangedImplCopyWithImpl(
|
|
|
|
|
_$PurposeChangedImpl _value,
|
|
|
|
|
$Res Function(_$PurposeChangedImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({Object? purpose = null}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$PurposeChangedImpl(
|
|
|
|
|
null == purpose
|
|
|
|
|
? _value.purpose
|
|
|
|
|
: purpose // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$PurposeChangedImpl implements _PurposeChanged {
|
|
|
|
|
const _$PurposeChangedImpl(this.purpose);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String purpose;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'ResendFormEvent.purposeChanged(purpose: $purpose)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$PurposeChangedImpl &&
|
|
|
|
|
(identical(other.purpose, purpose) || other.purpose == purpose));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, purpose);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$PurposeChangedImplCopyWith<_$PurposeChangedImpl> get copyWith =>
|
|
|
|
|
__$$PurposeChangedImplCopyWithImpl<_$PurposeChangedImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(String phoneNumber) phoneNumberChanged,
|
|
|
|
|
required TResult Function(String purpose) purposeChanged,
|
|
|
|
|
required TResult Function() submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return purposeChanged(purpose);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult? Function()? submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return purposeChanged?.call(purpose);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult Function()? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (purposeChanged != null) {
|
|
|
|
|
return purposeChanged(purpose);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_PhoneNumberChanged value) phoneNumberChanged,
|
|
|
|
|
required TResult Function(_PurposeChanged value) purposeChanged,
|
|
|
|
|
required TResult Function(_Submitted value) submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return purposeChanged(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult? Function(_Submitted value)? submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return purposeChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult Function(_Submitted value)? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (purposeChanged != null) {
|
|
|
|
|
return purposeChanged(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _PurposeChanged implements ResendFormEvent {
|
|
|
|
|
const factory _PurposeChanged(final String purpose) = _$PurposeChangedImpl;
|
|
|
|
|
|
|
|
|
|
String get purpose;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$PurposeChangedImplCopyWith<_$PurposeChangedImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$SubmittedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$SubmittedImplCopyWith(
|
|
|
|
|
_$SubmittedImpl value,
|
|
|
|
|
$Res Function(_$SubmittedImpl) then,
|
|
|
|
|
) = __$$SubmittedImplCopyWithImpl<$Res>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$SubmittedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ResendFormEventCopyWithImpl<$Res, _$SubmittedImpl>
|
|
|
|
|
implements _$$SubmittedImplCopyWith<$Res> {
|
|
|
|
|
__$$SubmittedImplCopyWithImpl(
|
|
|
|
|
_$SubmittedImpl _value,
|
|
|
|
|
$Res Function(_$SubmittedImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$SubmittedImpl implements _Submitted {
|
|
|
|
|
const _$SubmittedImpl();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'ResendFormEvent.submitted()';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType && other is _$SubmittedImpl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(String phoneNumber) phoneNumberChanged,
|
|
|
|
|
required TResult Function(String purpose) purposeChanged,
|
|
|
|
|
required TResult Function() submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return submitted();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult? Function()? submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return submitted?.call();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(String phoneNumber)? phoneNumberChanged,
|
|
|
|
|
TResult Function(String purpose)? purposeChanged,
|
|
|
|
|
TResult Function()? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (submitted != null) {
|
|
|
|
|
return submitted();
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_PhoneNumberChanged value) phoneNumberChanged,
|
|
|
|
|
required TResult Function(_PurposeChanged value) purposeChanged,
|
|
|
|
|
required TResult Function(_Submitted value) submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return submitted(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult? Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult? Function(_Submitted value)? submitted,
|
|
|
|
|
}) {
|
|
|
|
|
return submitted?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_PhoneNumberChanged value)? phoneNumberChanged,
|
|
|
|
|
TResult Function(_PurposeChanged value)? purposeChanged,
|
|
|
|
|
TResult Function(_Submitted value)? submitted,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (submitted != null) {
|
|
|
|
|
return submitted(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _Submitted implements ResendFormEvent {
|
|
|
|
|
const factory _Submitted() = _$SubmittedImpl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$ResendFormState {
|
|
|
|
|
String get phoneNumber => throw _privateConstructorUsedError;
|
|
|
|
|
String get purpose => throw _privateConstructorUsedError;
|
|
|
|
|
Option<Either<AuthFailure, Resend>> get failureOrResendOption =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
bool get isSubmitting => throw _privateConstructorUsedError;
|
|
|
|
|
bool get showErrorMessages => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$ResendFormStateCopyWith<ResendFormState> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $ResendFormStateCopyWith<$Res> {
|
|
|
|
|
factory $ResendFormStateCopyWith(
|
|
|
|
|
ResendFormState value,
|
|
|
|
|
$Res Function(ResendFormState) then,
|
|
|
|
|
) = _$ResendFormStateCopyWithImpl<$Res, ResendFormState>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String phoneNumber,
|
|
|
|
|
String purpose,
|
|
|
|
|
Option<Either<AuthFailure, Resend>> failureOrResendOption,
|
|
|
|
|
bool isSubmitting,
|
|
|
|
|
bool showErrorMessages,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$ResendFormStateCopyWithImpl<$Res, $Val extends ResendFormState>
|
|
|
|
|
implements $ResendFormStateCopyWith<$Res> {
|
|
|
|
|
_$ResendFormStateCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? phoneNumber = null,
|
|
|
|
|
Object? purpose = null,
|
|
|
|
|
Object? failureOrResendOption = null,
|
|
|
|
|
Object? isSubmitting = null,
|
|
|
|
|
Object? showErrorMessages = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
phoneNumber: null == phoneNumber
|
|
|
|
|
? _value.phoneNumber
|
|
|
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
purpose: null == purpose
|
|
|
|
|
? _value.purpose
|
|
|
|
|
: purpose // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
failureOrResendOption: null == failureOrResendOption
|
|
|
|
|
? _value.failureOrResendOption
|
|
|
|
|
: failureOrResendOption // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Option<Either<AuthFailure, Resend>>,
|
|
|
|
|
isSubmitting: null == isSubmitting
|
|
|
|
|
? _value.isSubmitting
|
|
|
|
|
: isSubmitting // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
showErrorMessages: null == showErrorMessages
|
|
|
|
|
? _value.showErrorMessages
|
|
|
|
|
: showErrorMessages // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$ResendFormStateImplCopyWith<$Res>
|
|
|
|
|
implements $ResendFormStateCopyWith<$Res> {
|
|
|
|
|
factory _$$ResendFormStateImplCopyWith(
|
|
|
|
|
_$ResendFormStateImpl value,
|
|
|
|
|
$Res Function(_$ResendFormStateImpl) then,
|
|
|
|
|
) = __$$ResendFormStateImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String phoneNumber,
|
|
|
|
|
String purpose,
|
|
|
|
|
Option<Either<AuthFailure, Resend>> failureOrResendOption,
|
|
|
|
|
bool isSubmitting,
|
|
|
|
|
bool showErrorMessages,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$ResendFormStateImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ResendFormStateCopyWithImpl<$Res, _$ResendFormStateImpl>
|
|
|
|
|
implements _$$ResendFormStateImplCopyWith<$Res> {
|
|
|
|
|
__$$ResendFormStateImplCopyWithImpl(
|
|
|
|
|
_$ResendFormStateImpl _value,
|
|
|
|
|
$Res Function(_$ResendFormStateImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? phoneNumber = null,
|
|
|
|
|
Object? purpose = null,
|
|
|
|
|
Object? failureOrResendOption = null,
|
|
|
|
|
Object? isSubmitting = null,
|
|
|
|
|
Object? showErrorMessages = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$ResendFormStateImpl(
|
|
|
|
|
phoneNumber: null == phoneNumber
|
|
|
|
|
? _value.phoneNumber
|
|
|
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
purpose: null == purpose
|
|
|
|
|
? _value.purpose
|
|
|
|
|
: purpose // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
failureOrResendOption: null == failureOrResendOption
|
|
|
|
|
? _value.failureOrResendOption
|
|
|
|
|
: failureOrResendOption // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Option<Either<AuthFailure, Resend>>,
|
|
|
|
|
isSubmitting: null == isSubmitting
|
|
|
|
|
? _value.isSubmitting
|
|
|
|
|
: isSubmitting // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
showErrorMessages: null == showErrorMessages
|
|
|
|
|
? _value.showErrorMessages
|
|
|
|
|
: showErrorMessages // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$ResendFormStateImpl implements _ResendFormState {
|
|
|
|
|
const _$ResendFormStateImpl({
|
|
|
|
|
required this.phoneNumber,
|
|
|
|
|
required this.purpose,
|
|
|
|
|
required this.failureOrResendOption,
|
|
|
|
|
this.isSubmitting = false,
|
|
|
|
|
this.showErrorMessages = false,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String phoneNumber;
|
|
|
|
|
@override
|
|
|
|
|
final String purpose;
|
|
|
|
|
@override
|
|
|
|
|
final Option<Either<AuthFailure, Resend>> failureOrResendOption;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final bool isSubmitting;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final bool showErrorMessages;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'ResendFormState(phoneNumber: $phoneNumber, purpose: $purpose, failureOrResendOption: $failureOrResendOption, isSubmitting: $isSubmitting, showErrorMessages: $showErrorMessages)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$ResendFormStateImpl &&
|
|
|
|
|
(identical(other.phoneNumber, phoneNumber) ||
|
|
|
|
|
other.phoneNumber == phoneNumber) &&
|
|
|
|
|
(identical(other.purpose, purpose) || other.purpose == purpose) &&
|
|
|
|
|
(identical(other.failureOrResendOption, failureOrResendOption) ||
|
|
|
|
|
other.failureOrResendOption == failureOrResendOption) &&
|
|
|
|
|
(identical(other.isSubmitting, isSubmitting) ||
|
|
|
|
|
other.isSubmitting == isSubmitting) &&
|
|
|
|
|
(identical(other.showErrorMessages, showErrorMessages) ||
|
|
|
|
|
other.showErrorMessages == showErrorMessages));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
phoneNumber,
|
|
|
|
|
purpose,
|
|
|
|
|
failureOrResendOption,
|
|
|
|
|
isSubmitting,
|
|
|
|
|
showErrorMessages,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$ResendFormStateImplCopyWith<_$ResendFormStateImpl> get copyWith =>
|
|
|
|
|
__$$ResendFormStateImplCopyWithImpl<_$ResendFormStateImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _ResendFormState implements ResendFormState {
|
|
|
|
|
const factory _ResendFormState({
|
|
|
|
|
required final String phoneNumber,
|
|
|
|
|
required final String purpose,
|
|
|
|
|
required final Option<Either<AuthFailure, Resend>> failureOrResendOption,
|
|
|
|
|
final bool isSubmitting,
|
|
|
|
|
final bool showErrorMessages,
|
|
|
|
|
}) = _$ResendFormStateImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get phoneNumber;
|
|
|
|
|
@override
|
|
|
|
|
String get purpose;
|
|
|
|
|
@override
|
|
|
|
|
Option<Either<AuthFailure, Resend>> get failureOrResendOption;
|
|
|
|
|
@override
|
|
|
|
|
bool get isSubmitting;
|
|
|
|
|
@override
|
|
|
|
|
bool get showErrorMessages;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of ResendFormState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$ResendFormStateImplCopyWith<_$ResendFormStateImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|