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})
const
factory

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

获取系统主题mode
no 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_AppLocalSettingModel value)?) → TResult?

Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_AppLocalSettingModel value)?, {required TResult orElse()}) → TResult

Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int themeIndex, int themeModel)?, {required TResult orElse()}) → TResult

Available on AppLocalSettingModel, provided by the AppLocalSettingModelPatterns extension

A variant of when that fallback to an orElse 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

A switch-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 of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited