AntdFormBase<Style extends AntdStyle, WidgetType> class abstract

Inheritance
Implementers

Constructors

AntdFormBase.new({Key? key, Style? style, AntdStyleBuilder<Style, WidgetType>? styleBuilder, bool? readOnly, bool? disabled, bool? hasFeedback, AntdFormLayout? layout, bool? preserve, bool? required, AntdFormTrigger? trigger, bool? validateFirst, AntdFormTrigger? validateTrigger, AntdFormController? controller})
const

Properties

controller AntdFormController?
控制器
final
disabled bool?
禁用
final
hasFeedback bool?
是否展示错误反馈
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layout AntdFormLayout?
布局模式
final
preserve bool?
当字段被删除时保留字段值
final
readOnly bool?
只读
final
required bool?
是否必选,需要注意的是这个属性仅仅用来控制外观,并不包含校验逻辑
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style → Style?
样式
finalinherited
styleBuilder AntdStyleBuilder<Style, WidgetType>?
动态样式
finalinherited
trigger AntdFormTrigger?
设置收集字段值变更的时机
final
validateFirst bool?
当某一规则校验不通过时,是否停止剩下的规则的校验。设置 parallel 时会并行校验
final
validateTrigger AntdFormTrigger?
设置字段校验的时机
final

Methods

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.
inherited
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) → Style
inherited
getFinalStyle(BuildContext context, Style style, AntdMapToken token) → Style
inherited
getInputStyle(BuildContext context) → Style?
inherited
getStyle(BuildContext context) → Style
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<Style, WidgetType>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<Style, WidgetType>?
inherited
getWidget(BuildContext context) → WidgetType
inherited
margeStyle(Style defaultStyle, Style? style) → Style
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