DesignNumberFieldDetails class

The field, as DesignNumberField.fieldBuilder gets it: wire controller, focusNode, keyboardType, inputFormatters and onEditingComplete to the look's text input.

Annotations

Constructors

DesignNumberFieldDetails({required TextEditingController controller, required FocusNode focusNode, required TextInputType keyboardType, required List<TextInputFormatter> inputFormatters, required VoidCallback onEditingComplete, required Set<WidgetState> states})
The field's wiring.
const

Properties

controller → TextEditingController
The text the field edits: the caller's when it gave one, else the field's own. The field never disposes a caller's.
final
focusNode → FocusNode
The field's focus: the caller's when it gave one, else the field's.
final
hashCode → int
The hash code for this object.
no setterinherited
inputFormatters → List<TextInputFormatter>
Keep out what can't become a number: letters, a second decimal separator, a decimal separator where only whole numbers go, a minus where none can.
final
keyboardType → TextInputType
A number pad: with a decimal key unless the step and the least value are whole, with a minus unless the least value is 0 or more.
final
onEditingComplete → VoidCallback
Takes the typed number: pass it to the input's onEditingComplete (not onSubmitted: Enter takes the number and keeps the focus, as the web's does). Focus leaving the field takes it too.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
states → Set<WidgetState>
The field's states: WidgetState.focused, WidgetState.hovered, WidgetState.disabled (a look makes its input read-only), and WidgetState.error while the text does not read as a number.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited