// 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 'home_auth_bloc.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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 _$HomeAuthEventTearOff { const _$HomeAuthEventTearOff(); _Started started() { return const _Started(); } _Stop stop() { return const _Stop(); } _Unauthorized unauthorized(String msg) { return _Unauthorized( msg, ); } } /// @nodoc const $HomeAuthEvent = _$HomeAuthEventTearOff(); /// @nodoc mixin _$HomeAuthEvent { @optionalTypeArgs TResult when({ required TResult Function() started, required TResult Function() stop, required TResult Function(String msg) unauthorized, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function()? stop, TResult Function(String msg)? unauthorized, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Stop value) stop, required TResult Function(_Unauthorized value) unauthorized, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Stop value)? stop, TResult Function(_Unauthorized value)? unauthorized, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $HomeAuthEventCopyWith<$Res> { factory $HomeAuthEventCopyWith( HomeAuthEvent value, $Res Function(HomeAuthEvent) then) = _$HomeAuthEventCopyWithImpl<$Res>; } /// @nodoc class _$HomeAuthEventCopyWithImpl<$Res> implements $HomeAuthEventCopyWith<$Res> { _$HomeAuthEventCopyWithImpl(this._value, this._then); final HomeAuthEvent _value; // ignore: unused_field final $Res Function(HomeAuthEvent) _then; } /// @nodoc abstract class _$StartedCopyWith<$Res> { factory _$StartedCopyWith(_Started value, $Res Function(_Started) then) = __$StartedCopyWithImpl<$Res>; } /// @nodoc class __$StartedCopyWithImpl<$Res> extends _$HomeAuthEventCopyWithImpl<$Res> implements _$StartedCopyWith<$Res> { __$StartedCopyWithImpl(_Started _value, $Res Function(_Started) _then) : super(_value, (v) => _then(v as _Started)); @override _Started get _value => super._value as _Started; } /// @nodoc class _$_Started implements _Started { const _$_Started(); @override String toString() { return 'HomeAuthEvent.started()'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other is _Started); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() started, required TResult Function() stop, required TResult Function(String msg) unauthorized, }) { return started(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function()? stop, TResult Function(String msg)? unauthorized, required TResult orElse(), }) { if (started != null) { return started(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Stop value) stop, required TResult Function(_Unauthorized value) unauthorized, }) { return started(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Stop value)? stop, TResult Function(_Unauthorized value)? unauthorized, required TResult orElse(), }) { if (started != null) { return started(this); } return orElse(); } } abstract class _Started implements HomeAuthEvent { const factory _Started() = _$_Started; } /// @nodoc abstract class _$StopCopyWith<$Res> { factory _$StopCopyWith(_Stop value, $Res Function(_Stop) then) = __$StopCopyWithImpl<$Res>; } /// @nodoc class __$StopCopyWithImpl<$Res> extends _$HomeAuthEventCopyWithImpl<$Res> implements _$StopCopyWith<$Res> { __$StopCopyWithImpl(_Stop _value, $Res Function(_Stop) _then) : super(_value, (v) => _then(v as _Stop)); @override _Stop get _value => super._value as _Stop; } /// @nodoc class _$_Stop implements _Stop { const _$_Stop(); @override String toString() { return 'HomeAuthEvent.stop()'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other is _Stop); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() started, required TResult Function() stop, required TResult Function(String msg) unauthorized, }) { return stop(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function()? stop, TResult Function(String msg)? unauthorized, required TResult orElse(), }) { if (stop != null) { return stop(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Stop value) stop, required TResult Function(_Unauthorized value) unauthorized, }) { return stop(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Stop value)? stop, TResult Function(_Unauthorized value)? unauthorized, required TResult orElse(), }) { if (stop != null) { return stop(this); } return orElse(); } } abstract class _Stop implements HomeAuthEvent { const factory _Stop() = _$_Stop; } /// @nodoc abstract class _$UnauthorizedCopyWith<$Res> { factory _$UnauthorizedCopyWith( _Unauthorized value, $Res Function(_Unauthorized) then) = __$UnauthorizedCopyWithImpl<$Res>; $Res call({String msg}); } /// @nodoc class __$UnauthorizedCopyWithImpl<$Res> extends _$HomeAuthEventCopyWithImpl<$Res> implements _$UnauthorizedCopyWith<$Res> { __$UnauthorizedCopyWithImpl( _Unauthorized _value, $Res Function(_Unauthorized) _then) : super(_value, (v) => _then(v as _Unauthorized)); @override _Unauthorized get _value => super._value as _Unauthorized; @override $Res call({ Object? msg = freezed, }) { return _then(_Unauthorized( msg == freezed ? _value.msg : msg // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc class _$_Unauthorized implements _Unauthorized { const _$_Unauthorized(this.msg); @override final String msg; @override String toString() { return 'HomeAuthEvent.unauthorized(msg: $msg)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other is _Unauthorized && (identical(other.msg, msg) || const DeepCollectionEquality().equals(other.msg, msg))); } @override int get hashCode => runtimeType.hashCode ^ const DeepCollectionEquality().hash(msg); @JsonKey(ignore: true) @override _$UnauthorizedCopyWith<_Unauthorized> get copyWith => __$UnauthorizedCopyWithImpl<_Unauthorized>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function() started, required TResult Function() stop, required TResult Function(String msg) unauthorized, }) { return unauthorized(msg); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function()? stop, TResult Function(String msg)? unauthorized, required TResult orElse(), }) { if (unauthorized != null) { return unauthorized(msg); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Stop value) stop, required TResult Function(_Unauthorized value) unauthorized, }) { return unauthorized(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Stop value)? stop, TResult Function(_Unauthorized value)? unauthorized, required TResult orElse(), }) { if (unauthorized != null) { return unauthorized(this); } return orElse(); } } abstract class _Unauthorized implements HomeAuthEvent { const factory _Unauthorized(String msg) = _$_Unauthorized; String get msg => throw _privateConstructorUsedError; @JsonKey(ignore: true) _$UnauthorizedCopyWith<_Unauthorized> get copyWith => throw _privateConstructorUsedError; } /// @nodoc class _$HomeAuthStateTearOff { const _$HomeAuthStateTearOff(); Loading loading() { return const Loading(); } Unauthorized unauthorized(String msg) { return Unauthorized( msg, ); } } /// @nodoc const $HomeAuthState = _$HomeAuthStateTearOff(); /// @nodoc mixin _$HomeAuthState { @optionalTypeArgs TResult when({ required TResult Function() loading, required TResult Function(String msg) unauthorized, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? loading, TResult Function(String msg)? unauthorized, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(Loading value) loading, required TResult Function(Unauthorized value) unauthorized, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(Loading value)? loading, TResult Function(Unauthorized value)? unauthorized, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $HomeAuthStateCopyWith<$Res> { factory $HomeAuthStateCopyWith( HomeAuthState value, $Res Function(HomeAuthState) then) = _$HomeAuthStateCopyWithImpl<$Res>; } /// @nodoc class _$HomeAuthStateCopyWithImpl<$Res> implements $HomeAuthStateCopyWith<$Res> { _$HomeAuthStateCopyWithImpl(this._value, this._then); final HomeAuthState _value; // ignore: unused_field final $Res Function(HomeAuthState) _then; } /// @nodoc abstract class $LoadingCopyWith<$Res> { factory $LoadingCopyWith(Loading value, $Res Function(Loading) then) = _$LoadingCopyWithImpl<$Res>; } /// @nodoc class _$LoadingCopyWithImpl<$Res> extends _$HomeAuthStateCopyWithImpl<$Res> implements $LoadingCopyWith<$Res> { _$LoadingCopyWithImpl(Loading _value, $Res Function(Loading) _then) : super(_value, (v) => _then(v as Loading)); @override Loading get _value => super._value as Loading; } /// @nodoc class _$Loading implements Loading { const _$Loading(); @override String toString() { return 'HomeAuthState.loading()'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other is Loading); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() loading, required TResult Function(String msg) unauthorized, }) { return loading(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? loading, TResult Function(String msg)? unauthorized, required TResult orElse(), }) { if (loading != null) { return loading(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(Loading value) loading, required TResult Function(Unauthorized value) unauthorized, }) { return loading(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(Loading value)? loading, TResult Function(Unauthorized value)? unauthorized, required TResult orElse(), }) { if (loading != null) { return loading(this); } return orElse(); } } abstract class Loading implements HomeAuthState { const factory Loading() = _$Loading; } /// @nodoc abstract class $UnauthorizedCopyWith<$Res> { factory $UnauthorizedCopyWith( Unauthorized value, $Res Function(Unauthorized) then) = _$UnauthorizedCopyWithImpl<$Res>; $Res call({String msg}); } /// @nodoc class _$UnauthorizedCopyWithImpl<$Res> extends _$HomeAuthStateCopyWithImpl<$Res> implements $UnauthorizedCopyWith<$Res> { _$UnauthorizedCopyWithImpl( Unauthorized _value, $Res Function(Unauthorized) _then) : super(_value, (v) => _then(v as Unauthorized)); @override Unauthorized get _value => super._value as Unauthorized; @override $Res call({ Object? msg = freezed, }) { return _then(Unauthorized( msg == freezed ? _value.msg : msg // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc class _$Unauthorized implements Unauthorized { const _$Unauthorized(this.msg); @override final String msg; @override String toString() { return 'HomeAuthState.unauthorized(msg: $msg)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other is Unauthorized && (identical(other.msg, msg) || const DeepCollectionEquality().equals(other.msg, msg))); } @override int get hashCode => runtimeType.hashCode ^ const DeepCollectionEquality().hash(msg); @JsonKey(ignore: true) @override $UnauthorizedCopyWith get copyWith => _$UnauthorizedCopyWithImpl(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function() loading, required TResult Function(String msg) unauthorized, }) { return unauthorized(msg); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? loading, TResult Function(String msg)? unauthorized, required TResult orElse(), }) { if (unauthorized != null) { return unauthorized(msg); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(Loading value) loading, required TResult Function(Unauthorized value) unauthorized, }) { return unauthorized(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(Loading value)? loading, TResult Function(Unauthorized value)? unauthorized, required TResult orElse(), }) { if (unauthorized != null) { return unauthorized(this); } return orElse(); } } abstract class Unauthorized implements HomeAuthState { const factory Unauthorized(String msg) = _$Unauthorized; String get msg => throw _privateConstructorUsedError; @JsonKey(ignore: true) $UnauthorizedCopyWith get copyWith => throw _privateConstructorUsedError; }