NumberSelection class Null safety

the concept of the widget inspired from Nikolay Kuchkarov. and thanks to Raouf Rahiche for starting this

Inheritance

Constructors

NumberSelection({Key? key, int? initialValue, ValueChanged<int>? onChanged, Function? onOutOfConstraints, bool enableOnOutOfConstraintsAnimation = true, Axis direction = Axis.horizontal, bool withSpring = true, int maxValue = 100, int minValue = -100, NumberSelectionTheme? theme})
const

Properties

direction Axis
the orientation of the stepper its horizontal or vertical.
final
enableOnOutOfConstraintsAnimation bool
Enable the color and boomerang animation when user try to change value to a value that is superior as maxValue or inferior as minValue
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
initialValue int?
the initial value of the stepper
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxValue int
maximum of the value it can reach defaults is 100
final
minValue int
minimum on the value it can be defaults is -100
final
onChanged ValueChanged<int>?
called whenever the value of the stepper changed
final
onOutOfConstraints Function?
called when user try to change value to a value that is superior as maxValue or inferior as minValue
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
theme NumberSelectionTheme?
Theme of the NumberSelection widget:
final
withSpring bool
if you want a springSimulation to happens the the user let go the stepper defaults to true
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _NumberSelectionState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtualinherited