forked from eatvio/eatvio_app
feat(order info): added order info screen
This commit is contained in:
@@ -12,8 +12,7 @@ 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 {
|
||||
@@ -21,53 +20,49 @@ 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, {
|
||||
@@ -75,15 +70,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
|
||||
@@ -103,9 +98,8 @@ 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
|
||||
@@ -113,9 +107,8 @@ 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.
|
||||
@@ -145,12 +138,9 @@ 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();
|
||||
@@ -161,12 +151,9 @@ 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();
|
||||
@@ -177,12 +164,9 @@ 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(),
|
||||
}) {
|
||||
@@ -236,20 +220,18 @@ 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.
|
||||
@@ -280,12 +262,9 @@ 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();
|
||||
@@ -296,12 +275,9 @@ 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();
|
||||
@@ -312,12 +288,9 @@ 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(),
|
||||
}) {
|
||||
@@ -371,16 +344,14 @@ 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;
|
||||
@@ -391,10 +362,9 @@ 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.
|
||||
@@ -405,25 +375,20 @@ 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
|
||||
@@ -460,11 +425,10 @@ 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;
|
||||
@@ -501,21 +465,16 @@ 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);
|
||||
@@ -526,12 +485,9 @@ 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);
|
||||
@@ -542,12 +498,9 @@ 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(),
|
||||
}) {
|
||||
@@ -596,11 +549,10 @@ 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;
|
||||
@@ -615,10 +567,9 @@ 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});
|
||||
}
|
||||
@@ -627,25 +578,23 @@ 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,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -681,21 +630,16 @@ 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);
|
||||
@@ -706,12 +650,9 @@ 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);
|
||||
@@ -722,12 +663,9 @@ 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