Cascader class

Inheritance

Constructors

Cascader.new({Key? key, bool allowClear = true, bool autoFocus = false, bool bordered = true, bool changeOnSelect = false, List<String> defaultValue = const [], bool disabled = false, Widget displayBuilder(String label, List<CascaderOption> selectedOptions)?, Widget dropdownBuilder(List<Widget> menus)?, Widget? expandIcon, CascaderTrigger expandTrigger = CascaderTrigger.click, Map? fieldNames, Widget getPopupContainer()?, void loadData(List<CascaderOption> selectedOptions)?, int? maxTagCount, Widget? maxTagPlaceholder, Widget notFoundContent = const Text('Not Found'), bool? open, List<CascaderOption> options = const [], String placeholder = '请选择', Alignment placement = Alignment.bottomLeft, ShowSearch? showSearch, CascaderSize size = CascaderSize.middle, CascaderStatus? status, Widget? suffixIcon, Widget tagBuilder()?, List<String>? value, void onChange(String value, List<CascaderOption> selectedOptions)?, void onPopupVisibleChange(String value)?, bool? multiple, String? searchValue, void onSearch(String search)?})
const

Properties

allowClear bool
final
autoFocus bool
final
bordered bool
final
changeOnSelect bool
final
defaultValue List<String>
final
disabled bool
final
displayBuilder Widget Function(String label, List<CascaderOption> selectedOptions)?
final
final
expandIcon Widget?
final
expandTrigger CascaderTrigger
final
fieldNames Map?
final
getPopupContainer Widget Function()?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadData → void Function(List<CascaderOption> selectedOptions)?
final
maxTagCount int?
final
maxTagPlaceholder Widget?
final
multiple bool?
final
notFoundContent Widget
final
onChange → void Function(String value, List<CascaderOption> selectedOptions)?
final
onPopupVisibleChange → void Function(String value)?
final
onSearch → void Function(String search)?
final
open bool?
final
options List<CascaderOption>
final
placeholder String
final
placement Alignment
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchValue String?
final
showSearch ShowSearch?
final
size CascaderSize
final
status CascaderStatus?
final
suffixIcon Widget?
final
tagBuilder Widget Function()?
final
value List<String>?
final

Methods

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