IntOptions class

Constructors

IntOptions(Map<int, String> items, {List<int>? hiddenValues, bool bitOperator = false, String missLabel = "未指定"})

Properties

bitOperator bool
final
hashCode int
The hash code for this object.
no setterinherited
hiddenSet Set<int>
final
items Map<int, String>
final
missLabel String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

entries([bool visiableOnly = true]) List<MapEntry<int, String>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options({bool visiableOnly = true}) List<LabelValue<int>>
segmentItems({bool visiableOnly = true, double paddingX = 8}) List<ButtonSegment<int>>
toBits(int value) List<int>
toDropdownItem(int value) DropdownMenuItem<int>
toLabel(int? value) String
toLabelOr(int? value, String? emptyText) String
toMenuItem(int value) PopupMenuItem<int>
toString() String
A string representation of this object.
inherited
toWidget(int? value) Widget
toWidgetOr(int? value, String? emptyText) Widget
values({bool visiableOnly = true}) List<int>

Operators

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

Static Methods

joinBits(Set<int> intSet) int