| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 | // 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_targetpart of 'auth_state.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');/// @nodocclass _$AuthStateTearOff {  const _$AuthStateTearOff();  Authenticated authenticated(UserProfile userProfile) {    return Authenticated(      userProfile,    );  }  Unauthenticated unauthenticated(UserError error) {    return Unauthenticated(      error,    );  }  _Initial initial() {    return const _Initial();  }}/// @nodocconst $AuthState = _$AuthStateTearOff();/// @nodocmixin _$AuthState {  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function(UserProfile userProfile) authenticated,    required TResult Function(UserError error) unauthenticated,    required TResult Function() initial,  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function(UserProfile userProfile)? authenticated,    TResult Function(UserError error)? unauthenticated,    TResult Function()? initial,    required TResult orElse(),  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Authenticated value) authenticated,    required TResult Function(Unauthenticated value) unauthenticated,    required TResult Function(_Initial value) initial,  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Authenticated value)? authenticated,    TResult Function(Unauthenticated value)? unauthenticated,    TResult Function(_Initial value)? initial,    required TResult orElse(),  }) =>      throw _privateConstructorUsedError;}/// @nodocabstract class $AuthStateCopyWith<$Res> {  factory $AuthStateCopyWith(AuthState value, $Res Function(AuthState) then) =      _$AuthStateCopyWithImpl<$Res>;}/// @nodocclass _$AuthStateCopyWithImpl<$Res> implements $AuthStateCopyWith<$Res> {  _$AuthStateCopyWithImpl(this._value, this._then);  final AuthState _value;  // ignore: unused_field  final $Res Function(AuthState) _then;}/// @nodocabstract class $AuthenticatedCopyWith<$Res> {  factory $AuthenticatedCopyWith(          Authenticated value, $Res Function(Authenticated) then) =      _$AuthenticatedCopyWithImpl<$Res>;  $Res call({UserProfile userProfile});}/// @nodocclass _$AuthenticatedCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res>    implements $AuthenticatedCopyWith<$Res> {  _$AuthenticatedCopyWithImpl(      Authenticated _value, $Res Function(Authenticated) _then)      : super(_value, (v) => _then(v as Authenticated));  @override  Authenticated get _value => super._value as Authenticated;  @override  $Res call({    Object? userProfile = freezed,  }) {    return _then(Authenticated(      userProfile == freezed          ? _value.userProfile          : userProfile // ignore: cast_nullable_to_non_nullable              as UserProfile,    ));  }}/// @nodocclass _$Authenticated implements Authenticated {  const _$Authenticated(this.userProfile);  @override  final UserProfile userProfile;  @override  String toString() {    return 'AuthState.authenticated(userProfile: $userProfile)';  }  @override  bool operator ==(dynamic other) {    return identical(this, other) ||        (other is Authenticated &&            (identical(other.userProfile, userProfile) ||                const DeepCollectionEquality()                    .equals(other.userProfile, userProfile)));  }  @override  int get hashCode =>      runtimeType.hashCode ^ const DeepCollectionEquality().hash(userProfile);  @JsonKey(ignore: true)  @override  $AuthenticatedCopyWith<Authenticated> get copyWith =>      _$AuthenticatedCopyWithImpl<Authenticated>(this, _$identity);  @override  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function(UserProfile userProfile) authenticated,    required TResult Function(UserError error) unauthenticated,    required TResult Function() initial,  }) {    return authenticated(userProfile);  }  @override  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function(UserProfile userProfile)? authenticated,    TResult Function(UserError error)? unauthenticated,    TResult Function()? initial,    required TResult orElse(),  }) {    if (authenticated != null) {      return authenticated(userProfile);    }    return orElse();  }  @override  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Authenticated value) authenticated,    required TResult Function(Unauthenticated value) unauthenticated,    required TResult Function(_Initial value) initial,  }) {    return authenticated(this);  }  @override  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Authenticated value)? authenticated,    TResult Function(Unauthenticated value)? unauthenticated,    TResult Function(_Initial value)? initial,    required TResult orElse(),  }) {    if (authenticated != null) {      return authenticated(this);    }    return orElse();  }}abstract class Authenticated implements AuthState {  const factory Authenticated(UserProfile userProfile) = _$Authenticated;  UserProfile get userProfile => throw _privateConstructorUsedError;  @JsonKey(ignore: true)  $AuthenticatedCopyWith<Authenticated> get copyWith =>      throw _privateConstructorUsedError;}/// @nodocabstract class $UnauthenticatedCopyWith<$Res> {  factory $UnauthenticatedCopyWith(          Unauthenticated value, $Res Function(Unauthenticated) then) =      _$UnauthenticatedCopyWithImpl<$Res>;  $Res call({UserError error});}/// @nodocclass _$UnauthenticatedCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res>    implements $UnauthenticatedCopyWith<$Res> {  _$UnauthenticatedCopyWithImpl(      Unauthenticated _value, $Res Function(Unauthenticated) _then)      : super(_value, (v) => _then(v as Unauthenticated));  @override  Unauthenticated get _value => super._value as Unauthenticated;  @override  $Res call({    Object? error = freezed,  }) {    return _then(Unauthenticated(      error == freezed          ? _value.error          : error // ignore: cast_nullable_to_non_nullable              as UserError,    ));  }}/// @nodocclass _$Unauthenticated implements Unauthenticated {  const _$Unauthenticated(this.error);  @override  final UserError error;  @override  String toString() {    return 'AuthState.unauthenticated(error: $error)';  }  @override  bool operator ==(dynamic other) {    return identical(this, other) ||        (other is Unauthenticated &&            (identical(other.error, error) ||                const DeepCollectionEquality().equals(other.error, error)));  }  @override  int get hashCode =>      runtimeType.hashCode ^ const DeepCollectionEquality().hash(error);  @JsonKey(ignore: true)  @override  $UnauthenticatedCopyWith<Unauthenticated> get copyWith =>      _$UnauthenticatedCopyWithImpl<Unauthenticated>(this, _$identity);  @override  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function(UserProfile userProfile) authenticated,    required TResult Function(UserError error) unauthenticated,    required TResult Function() initial,  }) {    return unauthenticated(error);  }  @override  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function(UserProfile userProfile)? authenticated,    TResult Function(UserError error)? unauthenticated,    TResult Function()? initial,    required TResult orElse(),  }) {    if (unauthenticated != null) {      return unauthenticated(error);    }    return orElse();  }  @override  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Authenticated value) authenticated,    required TResult Function(Unauthenticated value) unauthenticated,    required TResult Function(_Initial value) initial,  }) {    return unauthenticated(this);  }  @override  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Authenticated value)? authenticated,    TResult Function(Unauthenticated value)? unauthenticated,    TResult Function(_Initial value)? initial,    required TResult orElse(),  }) {    if (unauthenticated != null) {      return unauthenticated(this);    }    return orElse();  }}abstract class Unauthenticated implements AuthState {  const factory Unauthenticated(UserError error) = _$Unauthenticated;  UserError get error => throw _privateConstructorUsedError;  @JsonKey(ignore: true)  $UnauthenticatedCopyWith<Unauthenticated> get copyWith =>      throw _privateConstructorUsedError;}/// @nodocabstract class _$InitialCopyWith<$Res> {  factory _$InitialCopyWith(_Initial value, $Res Function(_Initial) then) =      __$InitialCopyWithImpl<$Res>;}/// @nodocclass __$InitialCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res>    implements _$InitialCopyWith<$Res> {  __$InitialCopyWithImpl(_Initial _value, $Res Function(_Initial) _then)      : super(_value, (v) => _then(v as _Initial));  @override  _Initial get _value => super._value as _Initial;}/// @nodocclass _$_Initial implements _Initial {  const _$_Initial();  @override  String toString() {    return 'AuthState.initial()';  }  @override  bool operator ==(dynamic other) {    return identical(this, other) || (other is _Initial);  }  @override  int get hashCode => runtimeType.hashCode;  @override  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function(UserProfile userProfile) authenticated,    required TResult Function(UserError error) unauthenticated,    required TResult Function() initial,  }) {    return initial();  }  @override  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function(UserProfile userProfile)? authenticated,    TResult Function(UserError error)? unauthenticated,    TResult Function()? initial,    required TResult orElse(),  }) {    if (initial != null) {      return initial();    }    return orElse();  }  @override  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Authenticated value) authenticated,    required TResult Function(Unauthenticated value) unauthenticated,    required TResult Function(_Initial value) initial,  }) {    return initial(this);  }  @override  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Authenticated value)? authenticated,    TResult Function(Unauthenticated value)? unauthenticated,    TResult Function(_Initial value)? initial,    required TResult orElse(),  }) {    if (initial != null) {      return initial(this);    }    return orElse();  }}abstract class _Initial implements AuthState {  const factory _Initial() = _$_Initial;}
 |