// GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file // ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // 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_controller.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc mixin _$ResendState { bool get isSending;/// The last request counts as sent (also for `emailSendLimited` and server /// failures from the check-email screen, F12/F13). bool get sent; AuthFailure? get failure;/// Only for an address typed in by the user. EmailError? get emailError; /// Create a copy of ResendState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ResendStateCopyWith get copyWith => _$ResendStateCopyWithImpl(this as ResendState, _$identity); @override bool operator ==(Object other) { final _this = this as ResendState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ResendState&&(identical(other.isSending, _this.isSending) || other.isSending == _this.isSending)&&(identical(other.sent, _this.sent) || other.sent == _this.sent)&&(identical(other.failure, _this.failure) || other.failure == _this.failure)&&(identical(other.emailError, _this.emailError) || other.emailError == _this.emailError)); } @override int get hashCode { final _this = this as ResendState; return Object.hash(runtimeType,_this.isSending,_this.sent,_this.failure,_this.emailError); } @override String toString() { final _this = this as ResendState; return 'ResendState(isSending: ${_this.isSending}, sent: ${_this.sent}, failure: ${_this.failure}, emailError: ${_this.emailError})'; } } /// @nodoc abstract mixin class $ResendStateCopyWith<$Res> { factory $ResendStateCopyWith(ResendState value, $Res Function(ResendState) _then) = _$ResendStateCopyWithImpl; @useResult $Res call({ bool isSending, bool sent, AuthFailure? failure, EmailError? emailError }); $AuthFailureCopyWith<$Res>? get failure; } /// @nodoc class _$ResendStateCopyWithImpl<$Res> implements $ResendStateCopyWith<$Res> { _$ResendStateCopyWithImpl(this._self, this._then); final ResendState _self; final $Res Function(ResendState) _then; /// Create a copy of ResendState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? isSending = null,Object? sent = null,Object? failure = freezed,Object? emailError = freezed,}) { return _then(ResendState( isSending: null == isSending ? _self.isSending : isSending // ignore: cast_nullable_to_non_nullable as bool,sent: null == sent ? _self.sent : sent // ignore: cast_nullable_to_non_nullable as bool,failure: freezed == failure ? _self.failure : failure // ignore: cast_nullable_to_non_nullable as AuthFailure?,emailError: freezed == emailError ? _self.emailError : emailError // ignore: cast_nullable_to_non_nullable as EmailError?, )); } /// Create a copy of ResendState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AuthFailureCopyWith<$Res>? get failure { if (_self.failure == null) { return null; } return $AuthFailureCopyWith<$Res>(_self.failure!, (value) { return _then(_self.copyWith(failure: value)); }); } } /// Adds pattern-matching-related methods to [ResendState]. extension ResendStatePatterns on ResendState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ResendState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ResendState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ResendState value) $default,){ final _that = this; switch (_that) { case _ResendState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ResendState value)? $default,){ final _that = this; switch (_that) { case _ResendState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( bool isSending, bool sent, AuthFailure? failure, EmailError? emailError)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ResendState() when $default != null: return $default(_that.isSending,_that.sent,_that.failure,_that.emailError);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( bool isSending, bool sent, AuthFailure? failure, EmailError? emailError) $default,) {final _that = this; switch (_that) { case _ResendState(): return $default(_that.isSending,_that.sent,_that.failure,_that.emailError);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( bool isSending, bool sent, AuthFailure? failure, EmailError? emailError)? $default,) {final _that = this; switch (_that) { case _ResendState() when $default != null: return $default(_that.isSending,_that.sent,_that.failure,_that.emailError);case _: return null; } } } /// @nodoc class _ResendState implements ResendState { const _ResendState({this.isSending = false, this.sent = false, this.failure, this.emailError}); @override@JsonKey() final bool isSending; /// The last request counts as sent (also for `emailSendLimited` and server /// failures from the check-email screen, F12/F13). @override@JsonKey() final bool sent; @override final AuthFailure? failure; /// Only for an address typed in by the user. @override final EmailError? emailError; /// Create a copy of ResendState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ResendStateCopyWith<_ResendState> get copyWith => __$ResendStateCopyWithImpl<_ResendState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ResendState&&(identical(other.isSending, isSending) || other.isSending == isSending)&&(identical(other.sent, sent) || other.sent == sent)&&(identical(other.failure, failure) || other.failure == failure)&&(identical(other.emailError, emailError) || other.emailError == emailError)); } @override int get hashCode { return Object.hash(runtimeType,isSending,sent,failure,emailError); } @override String toString() { return 'ResendState(isSending: $isSending, sent: $sent, failure: $failure, emailError: $emailError)'; } } /// @nodoc abstract mixin class _$ResendStateCopyWith<$Res> implements $ResendStateCopyWith<$Res> { factory _$ResendStateCopyWith(_ResendState value, $Res Function(_ResendState) _then) = __$ResendStateCopyWithImpl; @override @useResult $Res call({ bool isSending, bool sent, AuthFailure? failure, EmailError? emailError }); @override $AuthFailureCopyWith<$Res>? get failure; } /// @nodoc class __$ResendStateCopyWithImpl<$Res> implements _$ResendStateCopyWith<$Res> { __$ResendStateCopyWithImpl(this._self, this._then); final _ResendState _self; final $Res Function(_ResendState) _then; /// Create a copy of ResendState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? isSending = null,Object? sent = null,Object? failure = freezed,Object? emailError = freezed,}) { return _then(_ResendState( isSending: null == isSending ? _self.isSending : isSending // ignore: cast_nullable_to_non_nullable as bool,sent: null == sent ? _self.sent : sent // ignore: cast_nullable_to_non_nullable as bool,failure: freezed == failure ? _self.failure : failure // ignore: cast_nullable_to_non_nullable as AuthFailure?,emailError: freezed == emailError ? _self.emailError : emailError // ignore: cast_nullable_to_non_nullable as EmailError?, )); } /// Create a copy of ResendState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AuthFailureCopyWith<$Res>? get failure { if (_self.failure == null) { return null; } return $AuthFailureCopyWith<$Res>(_self.failure!, (value) { return _then(_self.copyWith(failure: value)); }); } } // dart format on