ComicNumberField class

A number stepper: one trough at a field's height, less and more as square cells at its ends and the lettered count with its unit between them; a note under it. A press marks its cell concentric with the trough.

ComicNumberField(value: 6, unit: 'servings', onChanged: (_) {})
Inheritance

Constructors

ComicNumberField({Key? key, ComicStyle? style, required int value, ValueChanged<int>? onChanged, int? min, int? max, int step = 1, String format(int value)?, String? unit, String? note, String? lessLabel, String? moreLabel})
Creates a ComicNumberField.
const

Properties

format → String Function(int value)?
Writes the count, '$value' when null.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lessLabel → String?
Overrides the localized decrease label.
final
max → int?
The least and the most the count may be; a step past either is disabled. Null leaves that end open.
final
min → int?
The least and the most the count may be; a step past either is disabled. Null leaves that end open.
final
moreLabel → String?
Overrides the localized increase label.
final
note → String?
Secondary explanatory text.
final
onChanged → ValueChanged<int>?
Receives the count a step less or more; null disables both steps.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
step → int
How far one press moves the count.
final
style → ComicStyle?
Appearance above the stepper component theme.
final
unit → String?
The word under the number, when the row around it hasn't said.
final
value → int
The count shown.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's 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.
override
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