TDStepper class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TDStepper
Constructors
-
TDStepper({Key? key, bool disableInput = false, bool disabled = false, double? inputWidth, int max = 100, int min = 0, TDStepperSize size = TDStepperSize.medium, int step = 1, TDStepperTheme theme = TDStepperTheme.normal, int? value = 0, int? defaultValue = 0, VoidCallback? onBlur, ValueChanged<
int> ? onChange, TDStepperOverlimitFunction? onOverlimit}) -
const
Properties
- defaultValue → int?
-
默认值
final
- disabled → bool
-
禁用全部操作
final
- disableInput → bool
-
禁用输入框
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputWidth → double?
-
禁用全部操作
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- max → int
-
最大值
final
- min → int
-
最小值
final
- onBlur → VoidCallback?
-
输入框失去焦点时触发
final
-
onChange
→ ValueChanged<
int> ? -
数值发生变更时触发
final
- onOverlimit → TDStepperOverlimitFunction?
-
数值超出限制时触发
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → TDStepperSize
-
组件尺寸
final
- step → int
-
步长
final
- theme → TDStepperTheme
-
组件风格
final
- value → int?
-
值
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TDStepper> -
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