ChoiceConfig class Null safety

单选、多选数组

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.
read-onlyinherited
isCheckBox bool
final
items List<ChoiceItem>
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedWidget Widget?
final
unselectedWidget Widget?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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