MyoroSingleSelectionDropdownConfiguration<T> class

Configuration model of MyoroSingleSelectionDropdown.

Inheritance
Annotations
  • @myoroModel

Constructors

MyoroSingleSelectionDropdownConfiguration.new({MyoroDropdownTypeEnum dropdownType = dropdownTypeDefaultValue, required MyoroSingleMenuConfiguration<T> menuConfiguration, required MyoroInputDropdownSelectedItemBuilder<T> selectedItemBuilder, String label = labelDefaultValue, bool enabled = enabledDefaultValue, MyoroInputCheckboxOnChanged? checkboxOnChanged, MyoroSingleMenuOnChanged<T>? onChanged})
const

Properties

checkboxOnChanged MyoroInputCheckboxOnChanged?
Checkbox on changed to toggle if the dropdown is enabled or not.
finalinherited
Dropdown type.
finalinherited
enabled bool
If the dropdown is enabled or not.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
label String
Label of the input.
finalinherited
MyoroMenuConfiguration of the dropdown.
finalinherited
onChanged MyoroSingleMenuOnChanged<T>?
Function executed when the selected item is changed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedItemBuilder MyoroInputDropdownSelectedItemBuilder<T>
Builder of the String displayed when a T item is selected.
finalinherited
self MyoroSingleSelectionDropdownConfiguration<T>
no setterinherited
targetKey GlobalKey<State<StatefulWidget>>?
GlobalKey of the Widget to base the dropdown from:
finalinherited
toggleDropdownOnFieldSubmitted bool
If the dropdown should be toggled when enter is pressed.
finalinherited
toggleDropdownOnInputTap bool
If the dropdown should be toggled when the input is tapped
finalinherited

Methods

copyWith({MyoroSingleMenuOnChanged<T>? onChanged, bool onChangedProvided = true, String? label, MyoroInputDropdownSelectedItemBuilder<T>? selectedItemBuilder, bool? enabled, MyoroInputCheckboxOnChanged? checkboxOnChanged, bool checkboxOnChangedProvided = true, bool? toggleDropdownOnInputTap, bool? toggleDropdownOnFieldSubmitted, MyoroDropdownTypeEnum? dropdownType, GlobalKey<State<StatefulWidget>>? targetKey, bool targetKeyProvided = true, MyoroSingleMenuConfiguration<T>? menuConfiguration}) MyoroSingleSelectionDropdownConfiguration<T>
inherited
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