ThemedDualListInput<T> class

Inheritance

Constructors

ThemedDualListInput({Key? key, String? labelText, Widget? label, required List<ThemedSelectItem<T>> items, void onChanged(List<ThemedSelectItem<T>>)?, List<T>? value, bool disabled = false, List<String> errors = const [], Map<String, String> translations = const {'actions.cancel' : 'Cancel', 'actions.save' : 'Save', 'layrz.duallist.search' : 'Search in {name}', 'layrz.duallist.toggleToSelected' : 'Toggle all to selected', 'layrz.duallist.toggleToAvailable' : 'Toggle all to available'}, bool overridesLayrzTranslations = false, double height = 400, String availableListName = "Available", String selectedListName = "Selected", double mobileScaleFactor = 2, bool compareFunction(T?, T?)?})
ThemedDualListInput is a dual list input.
const

Properties

availableListName String
availableListName is the name of the available list.
final
compareFunction → (bool Function(T?, T?)?)
compare optional function to compare elements if the default compare is not working.
final
disabled bool
disabled is the disabled state of the dual list input.
final
errors List<String>
errors is the list of errors of the dual list input.
final
hashCode int
The hash code for this object.
no setterinherited
height double
height is the height of the dual list input. In mobile mode, the height is multiplied by mobileScaleFactor.
final
items List<ThemedSelectItem<T>>
items is the list of items of the dual list input.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget?
label is the label widget of the dual list input. Avoid submit label and labelText at the same time.
final
labelText String?
labelText is the label text of the dual list input. Avoid submit label and labelText at the same time.
final
mobileScaleFactor double
mobileScaleFactor is the scale factor of the height in mobile mode.
final
onChanged → (void Function(List<ThemedSelectItem<T>>)?)
onChanged is the callback function when the dual list input is changed.
final
overridesLayrzTranslations bool
overridesLayrzTranslations is the flag to override the default translations of Layrz.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedListName String
selectedListName is the name of the selected list.
final
translations Map<String, String>
translations is the translations of the input. By default we use LayrzAppLocalizations for translations, but you can submit your own translations using this property. Consider when LayrzAppLocalizations is present, is the default value of this property. Required translations:
final
value List<T>?
value is the value of the dual list input.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ThemedDualListInput<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