ChoiceConfig class
单选、多选数组
isCheckBox 是否选中, 默认为 false
selectedWidget 选中的样式
unselectedWidget 未选中的样式
items 所有的选项组件ChoiceItem
- Annotations
Constructors
-
ChoiceConfig({bool isCheckBox = false, Widget? selectedWidget, Widget? unselectedWidget, required List<
ChoiceItem> items}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCheckBox → bool
-
final
-
items
→ List<
ChoiceItem> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedWidget → Widget?
-
final
- unselectedWidget → Widget?
-
final
Methods
-
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