TxFieldDecorator class

装饰器容器

Inheritance

Constructors

TxFieldDecorator({required FocusNode? focusNode, required bool canRequestFocus, required bool enabled, required InputDecoration decoration, required TextAlign? textAlign, required bool isEmpty, required Widget child, required VoidCallback? onTap, Key? key})
创建一个装饰器容器
const

Properties

canRequestFocus bool
是否允许请求焦点
final
child Widget
子组件
final
decoration InputDecoration
装饰器
final
enabled bool
是否可用
final
focusNode FocusNode?
焦点
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
是否为空
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap VoidCallback?
装饰器区域点击事件
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlign TextAlign?
文字对齐方式
final

Methods

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