forked from eatvio/eatvio_app
chat has been updated
This commit is contained in:
@@ -12,7 +12,8 @@ part of 'settings_state.dart';
|
||||
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#adding-getters-and-methods-to-our-models');
|
||||
'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#adding-getters-and-methods-to-our-models',
|
||||
);
|
||||
|
||||
/// @nodoc
|
||||
mixin _$SettingsState {
|
||||
@@ -20,49 +21,53 @@ mixin _$SettingsState {
|
||||
TResult when<TResult extends Object?>(
|
||||
TResult Function() $default, {
|
||||
required TResult Function() loading,
|
||||
required TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)
|
||||
loaded,
|
||||
required TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)
|
||||
loaded,
|
||||
required TResult Function(String errorMessage) error,
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function()? $default, {
|
||||
TResult? Function()? loading,
|
||||
TResult? Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult? Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult? Function(String errorMessage)? error,
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>(
|
||||
TResult Function()? $default, {
|
||||
TResult Function()? loading,
|
||||
TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult Function(String errorMessage)? error,
|
||||
required TResult orElse(),
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>(
|
||||
TResult Function(_SettingsState value) $default, {
|
||||
required TResult Function(SettingsStateLoading value) loading,
|
||||
required TResult Function(SettingsStateLoaded value) loaded,
|
||||
required TResult Function(SettingsStateError value) error,
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>(
|
||||
TResult? Function(_SettingsState value)? $default, {
|
||||
TResult? Function(SettingsStateLoading value)? loading,
|
||||
TResult? Function(SettingsStateLoaded value)? loaded,
|
||||
TResult? Function(SettingsStateError value)? error,
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>(
|
||||
TResult Function(_SettingsState value)? $default, {
|
||||
@@ -70,15 +75,15 @@ mixin _$SettingsState {
|
||||
TResult Function(SettingsStateLoaded value)? loaded,
|
||||
TResult Function(SettingsStateError value)? error,
|
||||
required TResult orElse(),
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
}) => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $SettingsStateCopyWith<$Res> {
|
||||
factory $SettingsStateCopyWith(
|
||||
SettingsState value, $Res Function(SettingsState) then) =
|
||||
_$SettingsStateCopyWithImpl<$Res, SettingsState>;
|
||||
SettingsState value,
|
||||
$Res Function(SettingsState) then,
|
||||
) = _$SettingsStateCopyWithImpl<$Res, SettingsState>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -98,8 +103,9 @@ class _$SettingsStateCopyWithImpl<$Res, $Val extends SettingsState>
|
||||
/// @nodoc
|
||||
abstract class _$$SettingsStateImplCopyWith<$Res> {
|
||||
factory _$$SettingsStateImplCopyWith(
|
||||
_$SettingsStateImpl value, $Res Function(_$SettingsStateImpl) then) =
|
||||
__$$SettingsStateImplCopyWithImpl<$Res>;
|
||||
_$SettingsStateImpl value,
|
||||
$Res Function(_$SettingsStateImpl) then,
|
||||
) = __$$SettingsStateImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -107,8 +113,9 @@ class __$$SettingsStateImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$SettingsStateImpl>
|
||||
implements _$$SettingsStateImplCopyWith<$Res> {
|
||||
__$$SettingsStateImplCopyWithImpl(
|
||||
_$SettingsStateImpl _value, $Res Function(_$SettingsStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
_$SettingsStateImpl _value,
|
||||
$Res Function(_$SettingsStateImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -138,9 +145,12 @@ class _$SettingsStateImpl implements _SettingsState {
|
||||
TResult when<TResult extends Object?>(
|
||||
TResult Function() $default, {
|
||||
required TResult Function() loading,
|
||||
required TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)
|
||||
loaded,
|
||||
required TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)
|
||||
loaded,
|
||||
required TResult Function(String errorMessage) error,
|
||||
}) {
|
||||
return $default();
|
||||
@@ -151,9 +161,12 @@ class _$SettingsStateImpl implements _SettingsState {
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function()? $default, {
|
||||
TResult? Function()? loading,
|
||||
TResult? Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult? Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult? Function(String errorMessage)? error,
|
||||
}) {
|
||||
return $default?.call();
|
||||
@@ -164,9 +177,12 @@ class _$SettingsStateImpl implements _SettingsState {
|
||||
TResult maybeWhen<TResult extends Object?>(
|
||||
TResult Function()? $default, {
|
||||
TResult Function()? loading,
|
||||
TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult Function(String errorMessage)? error,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
@@ -220,18 +236,20 @@ abstract class _SettingsState implements SettingsState {
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$SettingsStateLoadingImplCopyWith<$Res> {
|
||||
factory _$$SettingsStateLoadingImplCopyWith(_$SettingsStateLoadingImpl value,
|
||||
$Res Function(_$SettingsStateLoadingImpl) then) =
|
||||
__$$SettingsStateLoadingImplCopyWithImpl<$Res>;
|
||||
factory _$$SettingsStateLoadingImplCopyWith(
|
||||
_$SettingsStateLoadingImpl value,
|
||||
$Res Function(_$SettingsStateLoadingImpl) then,
|
||||
) = __$$SettingsStateLoadingImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$SettingsStateLoadingImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$SettingsStateLoadingImpl>
|
||||
implements _$$SettingsStateLoadingImplCopyWith<$Res> {
|
||||
__$$SettingsStateLoadingImplCopyWithImpl(_$SettingsStateLoadingImpl _value,
|
||||
$Res Function(_$SettingsStateLoadingImpl) _then)
|
||||
: super(_value, _then);
|
||||
__$$SettingsStateLoadingImplCopyWithImpl(
|
||||
_$SettingsStateLoadingImpl _value,
|
||||
$Res Function(_$SettingsStateLoadingImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -262,9 +280,12 @@ class _$SettingsStateLoadingImpl implements SettingsStateLoading {
|
||||
TResult when<TResult extends Object?>(
|
||||
TResult Function() $default, {
|
||||
required TResult Function() loading,
|
||||
required TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)
|
||||
loaded,
|
||||
required TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)
|
||||
loaded,
|
||||
required TResult Function(String errorMessage) error,
|
||||
}) {
|
||||
return loading();
|
||||
@@ -275,9 +296,12 @@ class _$SettingsStateLoadingImpl implements SettingsStateLoading {
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function()? $default, {
|
||||
TResult? Function()? loading,
|
||||
TResult? Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult? Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult? Function(String errorMessage)? error,
|
||||
}) {
|
||||
return loading?.call();
|
||||
@@ -288,9 +312,12 @@ class _$SettingsStateLoadingImpl implements SettingsStateLoading {
|
||||
TResult maybeWhen<TResult extends Object?>(
|
||||
TResult Function()? $default, {
|
||||
TResult Function()? loading,
|
||||
TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult Function(String errorMessage)? error,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
@@ -344,14 +371,16 @@ abstract class SettingsStateLoading implements SettingsState {
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$SettingsStateLoadedImplCopyWith<$Res> {
|
||||
factory _$$SettingsStateLoadedImplCopyWith(_$SettingsStateLoadedImpl value,
|
||||
$Res Function(_$SettingsStateLoadedImpl) then) =
|
||||
__$$SettingsStateLoadedImplCopyWithImpl<$Res>;
|
||||
factory _$$SettingsStateLoadedImplCopyWith(
|
||||
_$SettingsStateLoadedImpl value,
|
||||
$Res Function(_$SettingsStateLoadedImpl) then,
|
||||
) = __$$SettingsStateLoadedImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile});
|
||||
$Res call({
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
});
|
||||
|
||||
$ProfileSettingsModelCopyWith<$Res> get profileSettings;
|
||||
$ProfileDetailsModelCopyWith<$Res> get profileDetails;
|
||||
@@ -362,9 +391,10 @@ abstract class _$$SettingsStateLoadedImplCopyWith<$Res> {
|
||||
class __$$SettingsStateLoadedImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$SettingsStateLoadedImpl>
|
||||
implements _$$SettingsStateLoadedImplCopyWith<$Res> {
|
||||
__$$SettingsStateLoadedImplCopyWithImpl(_$SettingsStateLoadedImpl _value,
|
||||
$Res Function(_$SettingsStateLoadedImpl) _then)
|
||||
: super(_value, _then);
|
||||
__$$SettingsStateLoadedImplCopyWithImpl(
|
||||
_$SettingsStateLoadedImpl _value,
|
||||
$Res Function(_$SettingsStateLoadedImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -375,20 +405,25 @@ class __$$SettingsStateLoadedImplCopyWithImpl<$Res>
|
||||
Object? profileDetails = null,
|
||||
Object? profile = null,
|
||||
}) {
|
||||
return _then(_$SettingsStateLoadedImpl(
|
||||
profileSettings: null == profileSettings
|
||||
? _value.profileSettings
|
||||
: profileSettings // ignore: cast_nullable_to_non_nullable
|
||||
as ProfileSettingsModel,
|
||||
profileDetails: null == profileDetails
|
||||
? _value.profileDetails
|
||||
: profileDetails // ignore: cast_nullable_to_non_nullable
|
||||
as ProfileDetailsModel,
|
||||
profile: null == profile
|
||||
? _value.profile
|
||||
: profile // ignore: cast_nullable_to_non_nullable
|
||||
as ProfileModel,
|
||||
));
|
||||
return _then(
|
||||
_$SettingsStateLoadedImpl(
|
||||
profileSettings:
|
||||
null == profileSettings
|
||||
? _value.profileSettings
|
||||
: profileSettings // ignore: cast_nullable_to_non_nullable
|
||||
as ProfileSettingsModel,
|
||||
profileDetails:
|
||||
null == profileDetails
|
||||
? _value.profileDetails
|
||||
: profileDetails // ignore: cast_nullable_to_non_nullable
|
||||
as ProfileDetailsModel,
|
||||
profile:
|
||||
null == profile
|
||||
? _value.profile
|
||||
: profile // ignore: cast_nullable_to_non_nullable
|
||||
as ProfileModel,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
@@ -425,10 +460,11 @@ class __$$SettingsStateLoadedImplCopyWithImpl<$Res>
|
||||
/// @nodoc
|
||||
|
||||
class _$SettingsStateLoadedImpl implements SettingsStateLoaded {
|
||||
const _$SettingsStateLoadedImpl(
|
||||
{required this.profileSettings,
|
||||
required this.profileDetails,
|
||||
required this.profile});
|
||||
const _$SettingsStateLoadedImpl({
|
||||
required this.profileSettings,
|
||||
required this.profileDetails,
|
||||
required this.profile,
|
||||
});
|
||||
|
||||
@override
|
||||
final ProfileSettingsModel profileSettings;
|
||||
@@ -465,16 +501,21 @@ class _$SettingsStateLoadedImpl implements SettingsStateLoaded {
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SettingsStateLoadedImplCopyWith<_$SettingsStateLoadedImpl> get copyWith =>
|
||||
__$$SettingsStateLoadedImplCopyWithImpl<_$SettingsStateLoadedImpl>(
|
||||
this, _$identity);
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>(
|
||||
TResult Function() $default, {
|
||||
required TResult Function() loading,
|
||||
required TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)
|
||||
loaded,
|
||||
required TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)
|
||||
loaded,
|
||||
required TResult Function(String errorMessage) error,
|
||||
}) {
|
||||
return loaded(profileSettings, profileDetails, profile);
|
||||
@@ -485,9 +526,12 @@ class _$SettingsStateLoadedImpl implements SettingsStateLoaded {
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function()? $default, {
|
||||
TResult? Function()? loading,
|
||||
TResult? Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult? Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult? Function(String errorMessage)? error,
|
||||
}) {
|
||||
return loaded?.call(profileSettings, profileDetails, profile);
|
||||
@@ -498,9 +542,12 @@ class _$SettingsStateLoadedImpl implements SettingsStateLoaded {
|
||||
TResult maybeWhen<TResult extends Object?>(
|
||||
TResult Function()? $default, {
|
||||
TResult Function()? loading,
|
||||
TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult Function(String errorMessage)? error,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
@@ -549,10 +596,11 @@ class _$SettingsStateLoadedImpl implements SettingsStateLoaded {
|
||||
}
|
||||
|
||||
abstract class SettingsStateLoaded implements SettingsState {
|
||||
const factory SettingsStateLoaded(
|
||||
{required final ProfileSettingsModel profileSettings,
|
||||
required final ProfileDetailsModel profileDetails,
|
||||
required final ProfileModel profile}) = _$SettingsStateLoadedImpl;
|
||||
const factory SettingsStateLoaded({
|
||||
required final ProfileSettingsModel profileSettings,
|
||||
required final ProfileDetailsModel profileDetails,
|
||||
required final ProfileModel profile,
|
||||
}) = _$SettingsStateLoadedImpl;
|
||||
|
||||
ProfileSettingsModel get profileSettings;
|
||||
ProfileDetailsModel get profileDetails;
|
||||
@@ -567,9 +615,10 @@ abstract class SettingsStateLoaded implements SettingsState {
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$SettingsStateErrorImplCopyWith<$Res> {
|
||||
factory _$$SettingsStateErrorImplCopyWith(_$SettingsStateErrorImpl value,
|
||||
$Res Function(_$SettingsStateErrorImpl) then) =
|
||||
__$$SettingsStateErrorImplCopyWithImpl<$Res>;
|
||||
factory _$$SettingsStateErrorImplCopyWith(
|
||||
_$SettingsStateErrorImpl value,
|
||||
$Res Function(_$SettingsStateErrorImpl) then,
|
||||
) = __$$SettingsStateErrorImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call({String errorMessage});
|
||||
}
|
||||
@@ -578,23 +627,25 @@ abstract class _$$SettingsStateErrorImplCopyWith<$Res> {
|
||||
class __$$SettingsStateErrorImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$SettingsStateErrorImpl>
|
||||
implements _$$SettingsStateErrorImplCopyWith<$Res> {
|
||||
__$$SettingsStateErrorImplCopyWithImpl(_$SettingsStateErrorImpl _value,
|
||||
$Res Function(_$SettingsStateErrorImpl) _then)
|
||||
: super(_value, _then);
|
||||
__$$SettingsStateErrorImplCopyWithImpl(
|
||||
_$SettingsStateErrorImpl _value,
|
||||
$Res Function(_$SettingsStateErrorImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? errorMessage = null,
|
||||
}) {
|
||||
return _then(_$SettingsStateErrorImpl(
|
||||
errorMessage: null == errorMessage
|
||||
? _value.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
$Res call({Object? errorMessage = null}) {
|
||||
return _then(
|
||||
_$SettingsStateErrorImpl(
|
||||
errorMessage:
|
||||
null == errorMessage
|
||||
? _value.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -630,16 +681,21 @@ class _$SettingsStateErrorImpl implements SettingsStateError {
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SettingsStateErrorImplCopyWith<_$SettingsStateErrorImpl> get copyWith =>
|
||||
__$$SettingsStateErrorImplCopyWithImpl<_$SettingsStateErrorImpl>(
|
||||
this, _$identity);
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>(
|
||||
TResult Function() $default, {
|
||||
required TResult Function() loading,
|
||||
required TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)
|
||||
loaded,
|
||||
required TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)
|
||||
loaded,
|
||||
required TResult Function(String errorMessage) error,
|
||||
}) {
|
||||
return error(errorMessage);
|
||||
@@ -650,9 +706,12 @@ class _$SettingsStateErrorImpl implements SettingsStateError {
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function()? $default, {
|
||||
TResult? Function()? loading,
|
||||
TResult? Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult? Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult? Function(String errorMessage)? error,
|
||||
}) {
|
||||
return error?.call(errorMessage);
|
||||
@@ -663,9 +722,12 @@ class _$SettingsStateErrorImpl implements SettingsStateError {
|
||||
TResult maybeWhen<TResult extends Object?>(
|
||||
TResult Function()? $default, {
|
||||
TResult Function()? loading,
|
||||
TResult Function(ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails, ProfileModel profile)?
|
||||
loaded,
|
||||
TResult Function(
|
||||
ProfileSettingsModel profileSettings,
|
||||
ProfileDetailsModel profileDetails,
|
||||
ProfileModel profile,
|
||||
)?
|
||||
loaded,
|
||||
TResult Function(String errorMessage)? error,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user