SettingItem<T> class

设置项数据模型

Constructors

SettingItem.new({required SettingItemType type, required String? text, required T initialValue, required ValueChanged<T>? onChanged, IconData? startIcon, IconData? endIcon, List<T>? options, String displayFormatter(T)?})
const

Properties

displayFormatter String Function(T)?
格式化显示内容(仅用于选择器)
final
endIcon IconData?
右侧图标
final
hashCode int
The hash code for this object.
no setterinherited
initialValue → T
初始值
final
onChanged ValueChanged<T>?
值变化时的回调
final
options List<T>?
可选项(仅用于选择器)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIcon IconData?
左侧图标
final
text String?
设置项名称
final
type SettingItemType
设置项类型
final

Methods

isEqualTo(SettingItem<T> other) bool
比较两个 SettingItem 是否相等
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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