AntdCascaderView class
@t 级联选择视图 @g 信息录入 @o 61 @d CascaderView 是 Cascader 的内容区域。 @u 需要从一组相关联的数据集合进行选择,例如省市区,公司层级,事物分类等。
- Inheritance
Constructors
-
AntdCascaderView.new({Key? key, AntdCascaderViewStyle? style, AntdStyleBuilder<
AntdCascaderViewStyle, AntdCascaderView> ? styleBuilder, bool? disabled, bool? readOnly, List? defaultValue, List? value, bool? autoCollect = true, ValueChanged<List?> ? onChange, bool? shouldTriggerChange = true, AntdHapticFeedback? hapticFeedback = AntdHapticFeedback.light, Widget placeholder = const Text("请选择"), required List<AntdCascaderOption> options, AntdTabsOnChange<AntdTab> ? onTabsChange}) -
const
Properties
- autoCollect → bool?
-
自动同步值到表单
finalinherited
- bindWidget → Widget
-
no setterinherited
- defaultValue → List?
-
默认值
finalinherited
- disabled → bool?
-
禁用
finalinherited
- hapticFeedback → AntdHapticFeedback?
-
开启反馈
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChange
→ ValueChanged<
List?> ? -
变更事件
finalinherited
-
onTabsChange
→ AntdTabsOnChange<
AntdTab> ? -
默认选中项
final
-
options
→ List<
AntdCascaderOption> -
配置每一列的选项
final
- placeholder → Widget
-
未选中时的提示文案
final
- readOnly → bool?
-
只读
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldTriggerChange → bool?
-
当value手动控制的时候 是否应该触发onChange
finalinherited
- style → AntdCascaderViewStyle?
-
样式
finalinherited
-
styleBuilder
→ AntdStyleBuilder<
AntdCascaderViewStyle, AntdCascaderView> ? -
动态样式
finalinherited
- value → List?
-
值
finalinherited
Methods
-
copyFrom(
AntdCascaderView? view) → AntdCascaderView -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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
-
getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) → AntdCascaderViewStyle -
override
-
getFinalStyle(
BuildContext context, AntdCascaderViewStyle style, AntdMapToken token) → AntdCascaderViewStyle -
inherited
-
getInputStyle(
BuildContext context) → AntdCascaderViewStyle? -
inherited
-
getStyle(
BuildContext context) → AntdCascaderViewStyle -
inherited
-
getStyleBuilder(
BuildContext context) → AntdStyleBuilder< AntdCascaderViewStyle, AntdCascaderView> ? -
inherited
-
getThemeStyle(
BuildContext context, AntdTheme theme) → AntdStyleBuilder< AntdCascaderViewStyle, AntdCascaderView> ? -
override
-
getValue(
BuildContext context) → dynamic -
inherited
-
getWidget(
BuildContext context) → AntdCascaderView -
override
-
isFromItemEnv(
BuildContext context) → bool -
inherited
-
margeStyle(
AntdCascaderViewStyle defaultStyle, AntdCascaderViewStyle? style) → AntdCascaderViewStyle -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setValue(
BuildContext context, dynamic value, AntdFormTrigger sourceTrigger) → void -
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