SelectState class

Inheritance

Constructors

SelectState({Key? key, ValueChanged<String>? onCountryChanged, ValueChanged<String>? onStateChanged, ValueChanged<String>? onCityChanged, ValueChanged<StatusModel>? onCountrySelected, ValueChanged<State>? onStateSelected, ValueChanged<City>? onCitySelected, InputDecoration? decoration, double spacing = 10.0, TextStyle? style, TextStyle? hintStyle, Color? dropdownColor, String? defaultValue, String? defaultState, String? defaultCity, String countryHint = "Choose Country", String stateHint = "Choose State/Province", String cityHint = "Choose City", bool hideCountry = false, bool hideState = false, bool hideCity = false, bool showFlag = true, bool showSearch = true, PickerType pickerType = PickerType.material})
const

Properties

cityHint String
final
countryHint String
Custom hints
final
decoration InputDecoration?
final
defaultCity String?
final
defaultState String?
final
defaultValue String?
Initial selected values
final
final
hashCode int
The hash code for this object.
no setterinherited
hideCity bool
final
hideCountry bool
Visibility controls
final
hideState bool
final
hintStyle TextStyle?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCityChanged ValueChanged<String>?
final
onCitySelected ValueChanged<City>?
Callback that returns the selected city model
final
onCountryChanged ValueChanged<String>?
final
onCountrySelected ValueChanged<StatusModel>?
Callback that returns the selected country model
final
onStateChanged ValueChanged<String>?
final
onStateSelected ValueChanged<State>?
Callback that returns the selected state model
final
pickerType PickerType
Picker style: material, cupertino, or adaptive
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showFlag bool
final
showSearch bool
Search configuration
final
spacing double
final
stateHint String
final
style TextStyle?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SelectStateState
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, int wrapWidth = 65}) 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