DuelingPicklist<T extends Object> class

A dueling-picklist is used to move options between two lists and is often referred to as a multi-select.

Inheritance

Constructors

DuelingPicklist({Key? key, List<T> available = const <Never>[], Widget availableLabel = const Text('Available'), String displayStringForItem(T) = _defaultStringForItem, double height = 240.0, Widget? label, ValueChanged<List<T>>? onAvailableChanged, ValueChanged<List<T>>? onSelectedChanged, int onSort(T a, T b)?, List<T> selected = const <Never>[], Widget selectedLabel = const Text('Selected'), double spacing = 16.0})
A dueling-picklist is used to move options between two lists and is often referred to as a multi-select.
const

Properties

available List<T>
The list of available items.
final
availableLabel Widget
A label above the available items.
final
displayStringForItem String Function(T)
A callback used to display a string for an item.
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the picklists.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget?
A optional label to describe the picklists.
final
onAvailableChanged ValueChanged<List<T>>?
Called when the available items change.
final
onSelectedChanged ValueChanged<List<T>>?
Called when the selected items change.
final
onSort → (int Function(T a, T b)?)
How the items should be sorted.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected List<T>
The list of selected items.
final
selectedLabel Widget
A label above the selected items.
final
spacing double
The spacing between the arrows and the picklists.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DuelingPicklist<T>>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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