mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 20:07:48 -06:00
607 lines
20 KiB
Dart
607 lines
20 KiB
Dart
// 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 'authentication_cubit.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#custom-getters-and-methods');
|
|
|
|
/// @nodoc
|
|
mixin _$AuthenticationState {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() unauthenticated,
|
|
required TResult Function() requriresLocalAuthentication,
|
|
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
required TResult Function() switchingAccounts,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? unauthenticated,
|
|
TResult? Function()? requriresLocalAuthentication,
|
|
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult? Function()? switchingAccounts,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? unauthenticated,
|
|
TResult Function()? requriresLocalAuthentication,
|
|
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult Function()? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
required TResult Function(_RequiresLocalAuthentication value)
|
|
requriresLocalAuthentication,
|
|
required TResult Function(_Authenticated value) authenticated,
|
|
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
TResult? Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult? Function(_Authenticated value)? authenticated,
|
|
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
TResult Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult Function(_Authenticated value)? authenticated,
|
|
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AuthenticationStateCopyWith<$Res> {
|
|
factory $AuthenticationStateCopyWith(
|
|
AuthenticationState value, $Res Function(AuthenticationState) then) =
|
|
_$AuthenticationStateCopyWithImpl<$Res, AuthenticationState>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AuthenticationStateCopyWithImpl<$Res, $Val extends AuthenticationState>
|
|
implements $AuthenticationStateCopyWith<$Res> {
|
|
_$AuthenticationStateCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_UnauthenticatedCopyWith<$Res> {
|
|
factory _$$_UnauthenticatedCopyWith(
|
|
_$_Unauthenticated value, $Res Function(_$_Unauthenticated) then) =
|
|
__$$_UnauthenticatedCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_UnauthenticatedCopyWithImpl<$Res>
|
|
extends _$AuthenticationStateCopyWithImpl<$Res, _$_Unauthenticated>
|
|
implements _$$_UnauthenticatedCopyWith<$Res> {
|
|
__$$_UnauthenticatedCopyWithImpl(
|
|
_$_Unauthenticated _value, $Res Function(_$_Unauthenticated) _then)
|
|
: super(_value, _then);
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_Unauthenticated implements _Unauthenticated {
|
|
const _$_Unauthenticated();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthenticationState.unauthenticated()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$_Unauthenticated);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() unauthenticated,
|
|
required TResult Function() requriresLocalAuthentication,
|
|
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
required TResult Function() switchingAccounts,
|
|
}) {
|
|
return unauthenticated();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? unauthenticated,
|
|
TResult? Function()? requriresLocalAuthentication,
|
|
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult? Function()? switchingAccounts,
|
|
}) {
|
|
return unauthenticated?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? unauthenticated,
|
|
TResult Function()? requriresLocalAuthentication,
|
|
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult Function()? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (unauthenticated != null) {
|
|
return unauthenticated();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
required TResult Function(_RequiresLocalAuthentication value)
|
|
requriresLocalAuthentication,
|
|
required TResult Function(_Authenticated value) authenticated,
|
|
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
}) {
|
|
return unauthenticated(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
TResult? Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult? Function(_Authenticated value)? authenticated,
|
|
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
}) {
|
|
return unauthenticated?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
TResult Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult Function(_Authenticated value)? authenticated,
|
|
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (unauthenticated != null) {
|
|
return unauthenticated(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Unauthenticated implements AuthenticationState {
|
|
const factory _Unauthenticated() = _$_Unauthenticated;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_RequiresLocalAuthenticationCopyWith<$Res> {
|
|
factory _$$_RequiresLocalAuthenticationCopyWith(
|
|
_$_RequiresLocalAuthentication value,
|
|
$Res Function(_$_RequiresLocalAuthentication) then) =
|
|
__$$_RequiresLocalAuthenticationCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_RequiresLocalAuthenticationCopyWithImpl<$Res>
|
|
extends _$AuthenticationStateCopyWithImpl<$Res,
|
|
_$_RequiresLocalAuthentication>
|
|
implements _$$_RequiresLocalAuthenticationCopyWith<$Res> {
|
|
__$$_RequiresLocalAuthenticationCopyWithImpl(
|
|
_$_RequiresLocalAuthentication _value,
|
|
$Res Function(_$_RequiresLocalAuthentication) _then)
|
|
: super(_value, _then);
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_RequiresLocalAuthentication implements _RequiresLocalAuthentication {
|
|
const _$_RequiresLocalAuthentication();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthenticationState.requriresLocalAuthentication()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$_RequiresLocalAuthentication);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() unauthenticated,
|
|
required TResult Function() requriresLocalAuthentication,
|
|
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
required TResult Function() switchingAccounts,
|
|
}) {
|
|
return requriresLocalAuthentication();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? unauthenticated,
|
|
TResult? Function()? requriresLocalAuthentication,
|
|
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult? Function()? switchingAccounts,
|
|
}) {
|
|
return requriresLocalAuthentication?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? unauthenticated,
|
|
TResult Function()? requriresLocalAuthentication,
|
|
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult Function()? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (requriresLocalAuthentication != null) {
|
|
return requriresLocalAuthentication();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
required TResult Function(_RequiresLocalAuthentication value)
|
|
requriresLocalAuthentication,
|
|
required TResult Function(_Authenticated value) authenticated,
|
|
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
}) {
|
|
return requriresLocalAuthentication(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
TResult? Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult? Function(_Authenticated value)? authenticated,
|
|
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
}) {
|
|
return requriresLocalAuthentication?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
TResult Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult Function(_Authenticated value)? authenticated,
|
|
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (requriresLocalAuthentication != null) {
|
|
return requriresLocalAuthentication(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _RequiresLocalAuthentication implements AuthenticationState {
|
|
const factory _RequiresLocalAuthentication() = _$_RequiresLocalAuthentication;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_AuthenticatedCopyWith<$Res> {
|
|
factory _$$_AuthenticatedCopyWith(
|
|
_$_Authenticated value, $Res Function(_$_Authenticated) then) =
|
|
__$$_AuthenticatedCopyWithImpl<$Res>;
|
|
@useResult
|
|
$Res call({String localUserId, int apiVersion});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_AuthenticatedCopyWithImpl<$Res>
|
|
extends _$AuthenticationStateCopyWithImpl<$Res, _$_Authenticated>
|
|
implements _$$_AuthenticatedCopyWith<$Res> {
|
|
__$$_AuthenticatedCopyWithImpl(
|
|
_$_Authenticated _value, $Res Function(_$_Authenticated) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? localUserId = null,
|
|
Object? apiVersion = null,
|
|
}) {
|
|
return _then(_$_Authenticated(
|
|
localUserId: null == localUserId
|
|
? _value.localUserId
|
|
: localUserId // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
apiVersion: null == apiVersion
|
|
? _value.apiVersion
|
|
: apiVersion // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_Authenticated implements _Authenticated {
|
|
const _$_Authenticated({required this.localUserId, required this.apiVersion});
|
|
|
|
@override
|
|
final String localUserId;
|
|
@override
|
|
final int apiVersion;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthenticationState.authenticated(localUserId: $localUserId, apiVersion: $apiVersion)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$_Authenticated &&
|
|
(identical(other.localUserId, localUserId) ||
|
|
other.localUserId == localUserId) &&
|
|
(identical(other.apiVersion, apiVersion) ||
|
|
other.apiVersion == apiVersion));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, localUserId, apiVersion);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$_AuthenticatedCopyWith<_$_Authenticated> get copyWith =>
|
|
__$$_AuthenticatedCopyWithImpl<_$_Authenticated>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() unauthenticated,
|
|
required TResult Function() requriresLocalAuthentication,
|
|
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
required TResult Function() switchingAccounts,
|
|
}) {
|
|
return authenticated(localUserId, apiVersion);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? unauthenticated,
|
|
TResult? Function()? requriresLocalAuthentication,
|
|
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult? Function()? switchingAccounts,
|
|
}) {
|
|
return authenticated?.call(localUserId, apiVersion);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? unauthenticated,
|
|
TResult Function()? requriresLocalAuthentication,
|
|
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult Function()? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (authenticated != null) {
|
|
return authenticated(localUserId, apiVersion);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
required TResult Function(_RequiresLocalAuthentication value)
|
|
requriresLocalAuthentication,
|
|
required TResult Function(_Authenticated value) authenticated,
|
|
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
}) {
|
|
return authenticated(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
TResult? Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult? Function(_Authenticated value)? authenticated,
|
|
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
}) {
|
|
return authenticated?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
TResult Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult Function(_Authenticated value)? authenticated,
|
|
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (authenticated != null) {
|
|
return authenticated(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Authenticated implements AuthenticationState {
|
|
const factory _Authenticated(
|
|
{required final String localUserId,
|
|
required final int apiVersion}) = _$_Authenticated;
|
|
|
|
String get localUserId;
|
|
int get apiVersion;
|
|
@JsonKey(ignore: true)
|
|
_$$_AuthenticatedCopyWith<_$_Authenticated> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_SwitchingAccountsCopyWith<$Res> {
|
|
factory _$$_SwitchingAccountsCopyWith(_$_SwitchingAccounts value,
|
|
$Res Function(_$_SwitchingAccounts) then) =
|
|
__$$_SwitchingAccountsCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_SwitchingAccountsCopyWithImpl<$Res>
|
|
extends _$AuthenticationStateCopyWithImpl<$Res, _$_SwitchingAccounts>
|
|
implements _$$_SwitchingAccountsCopyWith<$Res> {
|
|
__$$_SwitchingAccountsCopyWithImpl(
|
|
_$_SwitchingAccounts _value, $Res Function(_$_SwitchingAccounts) _then)
|
|
: super(_value, _then);
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SwitchingAccounts implements _SwitchingAccounts {
|
|
const _$_SwitchingAccounts();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthenticationState.switchingAccounts()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$_SwitchingAccounts);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() unauthenticated,
|
|
required TResult Function() requriresLocalAuthentication,
|
|
required TResult Function(String localUserId, int apiVersion) authenticated,
|
|
required TResult Function() switchingAccounts,
|
|
}) {
|
|
return switchingAccounts();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? unauthenticated,
|
|
TResult? Function()? requriresLocalAuthentication,
|
|
TResult? Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult? Function()? switchingAccounts,
|
|
}) {
|
|
return switchingAccounts?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? unauthenticated,
|
|
TResult Function()? requriresLocalAuthentication,
|
|
TResult Function(String localUserId, int apiVersion)? authenticated,
|
|
TResult Function()? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (switchingAccounts != null) {
|
|
return switchingAccounts();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Unauthenticated value) unauthenticated,
|
|
required TResult Function(_RequiresLocalAuthentication value)
|
|
requriresLocalAuthentication,
|
|
required TResult Function(_Authenticated value) authenticated,
|
|
required TResult Function(_SwitchingAccounts value) switchingAccounts,
|
|
}) {
|
|
return switchingAccounts(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_Unauthenticated value)? unauthenticated,
|
|
TResult? Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult? Function(_Authenticated value)? authenticated,
|
|
TResult? Function(_SwitchingAccounts value)? switchingAccounts,
|
|
}) {
|
|
return switchingAccounts?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Unauthenticated value)? unauthenticated,
|
|
TResult Function(_RequiresLocalAuthentication value)?
|
|
requriresLocalAuthentication,
|
|
TResult Function(_Authenticated value)? authenticated,
|
|
TResult Function(_SwitchingAccounts value)? switchingAccounts,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (switchingAccounts != null) {
|
|
return switchingAccounts(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _SwitchingAccounts implements AuthenticationState {
|
|
const factory _SwitchingAccounts() = _$_SwitchingAccounts;
|
|
}
|