InputDropdown<T> class

Provides a drop down button for a selection list

Inheritance

Constructors

InputDropdown({Key key, bool autofocus: false, bool autosave, bool autovalidate, Color activeColor, Color color, InputDecoration decoration, Widget disabledHint, Color dropdownColor, int elevation, dynamic enabled, Color focusColor, FocusNode focusNode, Widget hint, Widget icon, Color iconDisabledColor, Color iconEnabledColor, double iconSize: 24.0, dynamic initialValue, bool isDense: false, bool isExpanded: false, double itemHeight: kMinInteractiveDimension, List<DropdownMenuItem<T>> items, Map<String, dynamic> map, ValueChanged<T> onChanged, ValueSetter<T> onSaved, dynamic onTap(), dynamic path, List<Widget> selectedItemBuilder(BuildContext), TextStyle style, Widget underline, List<InputValidator> validators, T value, bool wantKeepAlive: false})

Properties

activeColor Color
final
autofocus bool
final
autosave bool
Automatically saves a changed value. If autovalidate is true then a changed value will only be saved if there is no validation failure. Also invokes method onSaved. Default is true.
final, inherited
autovalidate bool
Automatically validates any change and updates error text accordingly. Default is false.
final, inherited
color Color
final
decoration InputDecoration
Decoration for the input field supplying frame, label, error text, ...
final, inherited
disabledHint Widget
final
final
elevation int
final
enabled bool
Whether the field accepts user input. Default is true.
final, inherited
focusColor Color
final
focusNode FocusNode
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
hint Widget
final
icon Widget
final
iconDisabledColor Color
final
iconEnabledColor Color
final
iconSize double
final
initialValue → T
The fields value will initially be set to this initialValue.
final, inherited
isDense bool
final
isExpanded bool
final
itemHeight double
final
items List<DropdownMenuItem<T>>
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
map Map<String, dynamic>
map is used together with path to provide the initial value from and to save changes to the map. This parameter supersedes parameter map given to an InputForm ancestor.
final, inherited
onChanged ValueSetter<T>
An optional method to call on every change of the fields value.
final, inherited
onSaved ValueSetter<T>
An optional method to call with the final value when the form is saved through InputFormState.save().
final, inherited
onTap → dynamic Function()
final
path String
The path to the fields value in map. If the form is nested then path elements must be dot separated.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedItemBuilder List<Widget> Function(BuildContext)
final
style TextStyle
final
underline Widget
final
validators List<InputValidator>
Methods that validate an input. The first failed validation will return an error string and no more validations will happen. [...]
final, inherited
value → T
final
wantKeepAlive bool
true will keep the state of all input fields within the same Slider even when the widget is scrolled out of view.
final, inherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _InputDropdownState<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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
Returns 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. [...]
@nonVirtual, inherited