QuantityInput class

Inheritance

Constructors

QuantityInput({required dynamic value, required dynamic onChanged(String), dynamic step = 1, int decimalDigits = 1, Color? buttonColor, Color? iconColor, String label = '', bool readOnly = false, bool acceptsNegatives = false, bool acceptsZero = false, dynamic minValue = 1, dynamic maxValue = 100000, QuantityInputType? type = QuantityInputType.int, double inputWidth = 80, InputDecoration? decoration, double elevation = 5})
Creates a widget that can be used to manage number inputs

Properties

acceptsNegatives bool
If set to true, the input can accept negative values
final
acceptsZero bool
If set to true, the input can accept the value 0
final
buttonColor Color?
Sets color for increment and decrement buttons
final
decimalDigits int
The number of decimal places that can be displayed for double input
final
decoration InputDecoration?
Sets custom InputDecoration to the widget TextFormField
final
elevation double
Sets elevation to increment and decrement buttons
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color?
Sets color for icons inside increment and decrement buttons
final
inputWidth double
The width of the textfield input
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
Sets label for input
final
maxValue → dynamic
Set max value to be displayed in input
final
minValue → dynamic
Set min value to be displayed in input
final
onChanged → dynamic Function(String)
Detects changes to the input and sends value through param
final
readOnly bool
Determines if the input will be readOnly
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
step → dynamic
The value that is incremented or decremented each time the user presses a button
final
type QuantityInputType?
Determines if the input will manage values as int or double
final
value → dynamic
Has to be an int or double depending on QuantityInputType variable
final

Methods

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