KodeposDropdown class

KodeposDropdown is a widget that provides a dropdown list of Indonesian provinces, cities, districts, and subdistricts. It requires KodeposController to manage the list of provinces, cities, districts, and subdistricts. It also requires AddressInputField to display the dropdown list.

Inheritance

Constructors

KodeposDropdown.new({Key? key, String? provinceTitle, String? cityTitle, String? prefixDropdownLabelProvince, String? prefixDropdownLabelCity, String? prefixDropdownLabelDistrict, String? prefixDropdownLabelSubdistrict, String? districtTitle, String? subdistrictTitle, double marginBottom = 16, Widget? inputPrefixWidget, String? provinceHint, String? cityHint, InputDecoration? inputDecoration, InputDecoration? selectedInputDecoration, String? districtHint, String? subdistrictHint, Function? onProvinceReset, Function? onCityReset, Function? onDistrictReset, Function? onSubdistrictReset, Function? onItemReset, BoxDecoration? boxDecoration, Widget? selectedPrefixWidgetCity, Widget? selectedPrefixWidgetDistrict, Widget? selectedPrefixWidgetProvince, Widget? selectedPrefixWidgetSubdistrict, BoxDecoration? selectedBoxDecoration, ItemAddressValue? selectedProvince, ItemAddressValue? selectedCity, ItemAddressValue? selectedDistrict, ItemAddressValue? selectedSubdistrict, Widget? suffixProvinceWidget, Widget? suffixCityWidget, Widget? suffixDistrictWidget, Widget? suffixSubdistrictWidget, dynamic onCompleted(AddressValue)?})
const

Properties

boxDecoration BoxDecoration?
final
cityHint String?
final
cityTitle String?
final
districtHint String?
final
districtTitle String?
final
hashCode int
The hash code for this object.
no setterinherited
inputDecoration InputDecoration?
final
inputPrefixWidget Widget?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
marginBottom double
final
onCityReset Function?
final
onCompleted → dynamic Function(AddressValue)?
final
onDistrictReset Function?
final
onItemReset Function?
final
onProvinceReset Function?
final
onSubdistrictReset Function?
final
prefixDropdownLabelCity String?
final
prefixDropdownLabelDistrict String?
final
prefixDropdownLabelProvince String?
final
prefixDropdownLabelSubdistrict String?
final
provinceHint String?
final
provinceTitle String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBoxDecoration BoxDecoration?
final
selectedCity ItemAddressValue?
final
selectedDistrict ItemAddressValue?
final
selectedInputDecoration InputDecoration?
final
selectedPrefixWidgetCity Widget?
final
selectedPrefixWidgetDistrict Widget?
final
selectedPrefixWidgetProvince Widget?
final
selectedPrefixWidgetSubdistrict Widget?
final
selectedProvince ItemAddressValue?
final
selectedSubdistrict ItemAddressValue?
final
subdistrictHint String?
final
subdistrictTitle String?
final
suffixCityWidget Widget?
final
suffixDistrictWidget Widget?
final
suffixProvinceWidget Widget?
final
suffixSubdistrictWidget Widget?
final

Methods

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