123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643 |
- // 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>(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<TResult extends Object?>({
- required TResult Function() started,
- required TResult Function() stop,
- required TResult Function(String msg) unauthorized,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? started,
- TResult Function()? stop,
- TResult Function(String msg)? unauthorized,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_Started value) started,
- required TResult Function(_Stop value) stop,
- required TResult Function(_Unauthorized value) unauthorized,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- 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<TResult extends Object?>({
- required TResult Function() started,
- required TResult Function() stop,
- required TResult Function(String msg) unauthorized,
- }) {
- return started();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- 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<TResult extends Object?>({
- 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 extends Object?>({
- 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<TResult extends Object?>({
- required TResult Function() started,
- required TResult Function() stop,
- required TResult Function(String msg) unauthorized,
- }) {
- return stop();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- 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<TResult extends Object?>({
- 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 extends Object?>({
- 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<TResult extends Object?>({
- required TResult Function() started,
- required TResult Function() stop,
- required TResult Function(String msg) unauthorized,
- }) {
- return unauthorized(msg);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- 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<TResult extends Object?>({
- 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 extends Object?>({
- 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<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(String msg) unauthorized,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(String msg)? unauthorized,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Loading value) loading,
- required TResult Function(Unauthorized value) unauthorized,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- 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<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(String msg) unauthorized,
- }) {
- return loading();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(String msg)? unauthorized,
- required TResult orElse(),
- }) {
- if (loading != null) {
- return loading();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Loading value) loading,
- required TResult Function(Unauthorized value) unauthorized,
- }) {
- return loading(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- 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<Unauthorized> get copyWith =>
- _$UnauthorizedCopyWithImpl<Unauthorized>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(String msg) unauthorized,
- }) {
- return unauthorized(msg);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(String msg)? unauthorized,
- required TResult orElse(),
- }) {
- if (unauthorized != null) {
- return unauthorized(msg);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Loading value) loading,
- required TResult Function(Unauthorized value) unauthorized,
- }) {
- return unauthorized(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- 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<Unauthorized> get copyWith =>
- throw _privateConstructorUsedError;
- }
|