ChoiceItem class

选择条目数据模型 默认支持图片和文本 依照模型创建ItemChoiceBuilder

Inheritance

Constructors

ChoiceItem({required double? imgWidth, required double? imgHeight, Selector<String>? image, Selector<String>? text, Selector<TextStyle>? textStyle, bool selected = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
image Selector<String>?
getter/setter pair
imgHeight double?
getter/setter pair
imgWidth double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
getter/setter pairinherited
text Selector<String>?
getter/setter pair
textStyle Selector<TextStyle>?
getter/setter pair

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