AppLocalSettingModel class sealed
选择的模式
0
- 跟随系统 (默认)
1
- 亮色模式
2
- 深色模式
- Available extensions
- Annotations
-
- @HiveType(typeId: 88)
- @freezed
Constructors
- AppLocalSettingModel.new({@HiveField(0, defaultValue: 0) @Default(0) int themeIndex, @HiveField(1, defaultValue: 0) @Default(0) int themeModel})
-
constfactory
Properties
-
copyWith
→ $AppLocalSettingModelCopyWith<
AppLocalSettingModel> -
Create a copy of AppLocalSettingModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- getThemeMode → ThemeMode
-
Available on AppLocalSettingModel, provided by the AppLocalSettingModelEx extension
获取系统主题modeno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeIndex → int
-
no setterinherited
- themeModel → int
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AppLocalSettingModel value)) → TResult -
Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AppLocalSettingModel value)?) → TResult? -
Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_AppLocalSettingModel value)?, {required TResult orElse()}) → TResult -
Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(int themeIndex, int themeModel)?, {required TResult orElse()}) → TResult -
Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(int themeIndex, int themeModel)) → TResult -
Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int themeIndex, int themeModel)?) → TResult? -
Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited