feature(settings): Верстка экранов настроек
This commit is contained in:
713
lib/screens/settings/cubit/settings_cubit.freezed.dart
Normal file
713
lib/screens/settings/cubit/settings_cubit.freezed.dart
Normal file
@@ -0,0 +1,713 @@
|
||||
// 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 'settings_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#adding-getters-and-methods-to-our-models',
|
||||
);
|
||||
|
||||
/// @nodoc
|
||||
mixin _$SettingsState {
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>({
|
||||
required TResult Function() initial,
|
||||
required TResult Function() profile,
|
||||
required TResult Function() notifications,
|
||||
required TResult Function() faq,
|
||||
required TResult Function() about,
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>({
|
||||
TResult? Function()? initial,
|
||||
TResult? Function()? profile,
|
||||
TResult? Function()? notifications,
|
||||
TResult? Function()? faq,
|
||||
TResult? Function()? about,
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>({
|
||||
TResult Function()? initial,
|
||||
TResult Function()? profile,
|
||||
TResult Function()? notifications,
|
||||
TResult Function()? faq,
|
||||
TResult Function()? about,
|
||||
required TResult orElse(),
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>({
|
||||
required TResult Function(_Initial value) initial,
|
||||
required TResult Function(_Profile value) profile,
|
||||
required TResult Function(_Notifications value) notifications,
|
||||
required TResult Function(_Faq value) faq,
|
||||
required TResult Function(_About value) about,
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>({
|
||||
TResult? Function(_Initial value)? initial,
|
||||
TResult? Function(_Profile value)? profile,
|
||||
TResult? Function(_Notifications value)? notifications,
|
||||
TResult? Function(_Faq value)? faq,
|
||||
TResult? Function(_About value)? about,
|
||||
}) => throw _privateConstructorUsedError;
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>({
|
||||
TResult Function(_Initial value)? initial,
|
||||
TResult Function(_Profile value)? profile,
|
||||
TResult Function(_Notifications value)? notifications,
|
||||
TResult Function(_Faq value)? faq,
|
||||
TResult Function(_About value)? about,
|
||||
required TResult orElse(),
|
||||
}) => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $SettingsStateCopyWith<$Res> {
|
||||
factory $SettingsStateCopyWith(
|
||||
SettingsState value,
|
||||
$Res Function(SettingsState) then,
|
||||
) = _$SettingsStateCopyWithImpl<$Res, SettingsState>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$SettingsStateCopyWithImpl<$Res, $Val extends SettingsState>
|
||||
implements $SettingsStateCopyWith<$Res> {
|
||||
_$SettingsStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$InitialImplCopyWith<$Res> {
|
||||
factory _$$InitialImplCopyWith(
|
||||
_$InitialImpl value,
|
||||
$Res Function(_$InitialImpl) then,
|
||||
) = __$$InitialImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$InitialImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$InitialImpl>
|
||||
implements _$$InitialImplCopyWith<$Res> {
|
||||
__$$InitialImplCopyWithImpl(
|
||||
_$InitialImpl _value,
|
||||
$Res Function(_$InitialImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$InitialImpl implements _Initial {
|
||||
const _$InitialImpl();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'SettingsState.initial()';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$InitialImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => runtimeType.hashCode;
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>({
|
||||
required TResult Function() initial,
|
||||
required TResult Function() profile,
|
||||
required TResult Function() notifications,
|
||||
required TResult Function() faq,
|
||||
required TResult Function() about,
|
||||
}) {
|
||||
return initial();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>({
|
||||
TResult? Function()? initial,
|
||||
TResult? Function()? profile,
|
||||
TResult? Function()? notifications,
|
||||
TResult? Function()? faq,
|
||||
TResult? Function()? about,
|
||||
}) {
|
||||
return initial?.call();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>({
|
||||
TResult Function()? initial,
|
||||
TResult Function()? profile,
|
||||
TResult Function()? notifications,
|
||||
TResult Function()? faq,
|
||||
TResult Function()? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (initial != null) {
|
||||
return initial();
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>({
|
||||
required TResult Function(_Initial value) initial,
|
||||
required TResult Function(_Profile value) profile,
|
||||
required TResult Function(_Notifications value) notifications,
|
||||
required TResult Function(_Faq value) faq,
|
||||
required TResult Function(_About value) about,
|
||||
}) {
|
||||
return initial(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>({
|
||||
TResult? Function(_Initial value)? initial,
|
||||
TResult? Function(_Profile value)? profile,
|
||||
TResult? Function(_Notifications value)? notifications,
|
||||
TResult? Function(_Faq value)? faq,
|
||||
TResult? Function(_About value)? about,
|
||||
}) {
|
||||
return initial?.call(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>({
|
||||
TResult Function(_Initial value)? initial,
|
||||
TResult Function(_Profile value)? profile,
|
||||
TResult Function(_Notifications value)? notifications,
|
||||
TResult Function(_Faq value)? faq,
|
||||
TResult Function(_About value)? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (initial != null) {
|
||||
return initial(this);
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Initial implements SettingsState {
|
||||
const factory _Initial() = _$InitialImpl;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ProfileImplCopyWith<$Res> {
|
||||
factory _$$ProfileImplCopyWith(
|
||||
_$ProfileImpl value,
|
||||
$Res Function(_$ProfileImpl) then,
|
||||
) = __$$ProfileImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ProfileImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$ProfileImpl>
|
||||
implements _$$ProfileImplCopyWith<$Res> {
|
||||
__$$ProfileImplCopyWithImpl(
|
||||
_$ProfileImpl _value,
|
||||
$Res Function(_$ProfileImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$ProfileImpl implements _Profile {
|
||||
const _$ProfileImpl();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'SettingsState.profile()';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$ProfileImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => runtimeType.hashCode;
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>({
|
||||
required TResult Function() initial,
|
||||
required TResult Function() profile,
|
||||
required TResult Function() notifications,
|
||||
required TResult Function() faq,
|
||||
required TResult Function() about,
|
||||
}) {
|
||||
return profile();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>({
|
||||
TResult? Function()? initial,
|
||||
TResult? Function()? profile,
|
||||
TResult? Function()? notifications,
|
||||
TResult? Function()? faq,
|
||||
TResult? Function()? about,
|
||||
}) {
|
||||
return profile?.call();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>({
|
||||
TResult Function()? initial,
|
||||
TResult Function()? profile,
|
||||
TResult Function()? notifications,
|
||||
TResult Function()? faq,
|
||||
TResult Function()? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (profile != null) {
|
||||
return profile();
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>({
|
||||
required TResult Function(_Initial value) initial,
|
||||
required TResult Function(_Profile value) profile,
|
||||
required TResult Function(_Notifications value) notifications,
|
||||
required TResult Function(_Faq value) faq,
|
||||
required TResult Function(_About value) about,
|
||||
}) {
|
||||
return profile(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>({
|
||||
TResult? Function(_Initial value)? initial,
|
||||
TResult? Function(_Profile value)? profile,
|
||||
TResult? Function(_Notifications value)? notifications,
|
||||
TResult? Function(_Faq value)? faq,
|
||||
TResult? Function(_About value)? about,
|
||||
}) {
|
||||
return profile?.call(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>({
|
||||
TResult Function(_Initial value)? initial,
|
||||
TResult Function(_Profile value)? profile,
|
||||
TResult Function(_Notifications value)? notifications,
|
||||
TResult Function(_Faq value)? faq,
|
||||
TResult Function(_About value)? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (profile != null) {
|
||||
return profile(this);
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Profile implements SettingsState {
|
||||
const factory _Profile() = _$ProfileImpl;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$NotificationsImplCopyWith<$Res> {
|
||||
factory _$$NotificationsImplCopyWith(
|
||||
_$NotificationsImpl value,
|
||||
$Res Function(_$NotificationsImpl) then,
|
||||
) = __$$NotificationsImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$NotificationsImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$NotificationsImpl>
|
||||
implements _$$NotificationsImplCopyWith<$Res> {
|
||||
__$$NotificationsImplCopyWithImpl(
|
||||
_$NotificationsImpl _value,
|
||||
$Res Function(_$NotificationsImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$NotificationsImpl implements _Notifications {
|
||||
const _$NotificationsImpl();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'SettingsState.notifications()';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$NotificationsImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => runtimeType.hashCode;
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>({
|
||||
required TResult Function() initial,
|
||||
required TResult Function() profile,
|
||||
required TResult Function() notifications,
|
||||
required TResult Function() faq,
|
||||
required TResult Function() about,
|
||||
}) {
|
||||
return notifications();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>({
|
||||
TResult? Function()? initial,
|
||||
TResult? Function()? profile,
|
||||
TResult? Function()? notifications,
|
||||
TResult? Function()? faq,
|
||||
TResult? Function()? about,
|
||||
}) {
|
||||
return notifications?.call();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>({
|
||||
TResult Function()? initial,
|
||||
TResult Function()? profile,
|
||||
TResult Function()? notifications,
|
||||
TResult Function()? faq,
|
||||
TResult Function()? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (notifications != null) {
|
||||
return notifications();
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>({
|
||||
required TResult Function(_Initial value) initial,
|
||||
required TResult Function(_Profile value) profile,
|
||||
required TResult Function(_Notifications value) notifications,
|
||||
required TResult Function(_Faq value) faq,
|
||||
required TResult Function(_About value) about,
|
||||
}) {
|
||||
return notifications(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>({
|
||||
TResult? Function(_Initial value)? initial,
|
||||
TResult? Function(_Profile value)? profile,
|
||||
TResult? Function(_Notifications value)? notifications,
|
||||
TResult? Function(_Faq value)? faq,
|
||||
TResult? Function(_About value)? about,
|
||||
}) {
|
||||
return notifications?.call(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>({
|
||||
TResult Function(_Initial value)? initial,
|
||||
TResult Function(_Profile value)? profile,
|
||||
TResult Function(_Notifications value)? notifications,
|
||||
TResult Function(_Faq value)? faq,
|
||||
TResult Function(_About value)? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (notifications != null) {
|
||||
return notifications(this);
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Notifications implements SettingsState {
|
||||
const factory _Notifications() = _$NotificationsImpl;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$FaqImplCopyWith<$Res> {
|
||||
factory _$$FaqImplCopyWith(_$FaqImpl value, $Res Function(_$FaqImpl) then) =
|
||||
__$$FaqImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$FaqImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$FaqImpl>
|
||||
implements _$$FaqImplCopyWith<$Res> {
|
||||
__$$FaqImplCopyWithImpl(_$FaqImpl _value, $Res Function(_$FaqImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$FaqImpl implements _Faq {
|
||||
const _$FaqImpl();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'SettingsState.faq()';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$FaqImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => runtimeType.hashCode;
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>({
|
||||
required TResult Function() initial,
|
||||
required TResult Function() profile,
|
||||
required TResult Function() notifications,
|
||||
required TResult Function() faq,
|
||||
required TResult Function() about,
|
||||
}) {
|
||||
return faq();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>({
|
||||
TResult? Function()? initial,
|
||||
TResult? Function()? profile,
|
||||
TResult? Function()? notifications,
|
||||
TResult? Function()? faq,
|
||||
TResult? Function()? about,
|
||||
}) {
|
||||
return faq?.call();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>({
|
||||
TResult Function()? initial,
|
||||
TResult Function()? profile,
|
||||
TResult Function()? notifications,
|
||||
TResult Function()? faq,
|
||||
TResult Function()? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (faq != null) {
|
||||
return faq();
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>({
|
||||
required TResult Function(_Initial value) initial,
|
||||
required TResult Function(_Profile value) profile,
|
||||
required TResult Function(_Notifications value) notifications,
|
||||
required TResult Function(_Faq value) faq,
|
||||
required TResult Function(_About value) about,
|
||||
}) {
|
||||
return faq(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>({
|
||||
TResult? Function(_Initial value)? initial,
|
||||
TResult? Function(_Profile value)? profile,
|
||||
TResult? Function(_Notifications value)? notifications,
|
||||
TResult? Function(_Faq value)? faq,
|
||||
TResult? Function(_About value)? about,
|
||||
}) {
|
||||
return faq?.call(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>({
|
||||
TResult Function(_Initial value)? initial,
|
||||
TResult Function(_Profile value)? profile,
|
||||
TResult Function(_Notifications value)? notifications,
|
||||
TResult Function(_Faq value)? faq,
|
||||
TResult Function(_About value)? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (faq != null) {
|
||||
return faq(this);
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Faq implements SettingsState {
|
||||
const factory _Faq() = _$FaqImpl;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$AboutImplCopyWith<$Res> {
|
||||
factory _$$AboutImplCopyWith(
|
||||
_$AboutImpl value,
|
||||
$Res Function(_$AboutImpl) then,
|
||||
) = __$$AboutImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$AboutImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$AboutImpl>
|
||||
implements _$$AboutImplCopyWith<$Res> {
|
||||
__$$AboutImplCopyWithImpl(
|
||||
_$AboutImpl _value,
|
||||
$Res Function(_$AboutImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$AboutImpl implements _About {
|
||||
const _$AboutImpl();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'SettingsState.about()';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$AboutImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => runtimeType.hashCode;
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>({
|
||||
required TResult Function() initial,
|
||||
required TResult Function() profile,
|
||||
required TResult Function() notifications,
|
||||
required TResult Function() faq,
|
||||
required TResult Function() about,
|
||||
}) {
|
||||
return about();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>({
|
||||
TResult? Function()? initial,
|
||||
TResult? Function()? profile,
|
||||
TResult? Function()? notifications,
|
||||
TResult? Function()? faq,
|
||||
TResult? Function()? about,
|
||||
}) {
|
||||
return about?.call();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>({
|
||||
TResult Function()? initial,
|
||||
TResult Function()? profile,
|
||||
TResult Function()? notifications,
|
||||
TResult Function()? faq,
|
||||
TResult Function()? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (about != null) {
|
||||
return about();
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>({
|
||||
required TResult Function(_Initial value) initial,
|
||||
required TResult Function(_Profile value) profile,
|
||||
required TResult Function(_Notifications value) notifications,
|
||||
required TResult Function(_Faq value) faq,
|
||||
required TResult Function(_About value) about,
|
||||
}) {
|
||||
return about(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>({
|
||||
TResult? Function(_Initial value)? initial,
|
||||
TResult? Function(_Profile value)? profile,
|
||||
TResult? Function(_Notifications value)? notifications,
|
||||
TResult? Function(_Faq value)? faq,
|
||||
TResult? Function(_About value)? about,
|
||||
}) {
|
||||
return about?.call(this);
|
||||
}
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>({
|
||||
TResult Function(_Initial value)? initial,
|
||||
TResult Function(_Profile value)? profile,
|
||||
TResult Function(_Notifications value)? notifications,
|
||||
TResult Function(_Faq value)? faq,
|
||||
TResult Function(_About value)? about,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
if (about != null) {
|
||||
return about(this);
|
||||
}
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _About implements SettingsState {
|
||||
const factory _About() = _$AboutImpl;
|
||||
}
|
||||
Reference in New Issue
Block a user