FxPinInputController class
Manages focus, text editing controllers, loading state, and submission logic for FxPinInput. Owned and disposed by FxPinInputState.
Constructors
-
FxPinInputController({required int length, Future<
void> onCompleted(String)?})
Properties
-
controllers
↔ List<
TextEditingController> -
latefinal
- currentValue → String
-
no setter
-
focusNodes
↔ List<
FocusNode> -
latefinal
- hasError ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
no setter
- isLoading ↔ bool
-
getter/setter pair
- length → int
-
final
-
onCompleted
→ Future<
void> Function(String)? -
final
- onLoadingChanged ↔ void Function(bool)?
-
Called when isLoading toggles so the parent state can call setState.
getter/setter pair
- onValueChanged ↔ void Function(String)?
-
Called whenever the composed pin value changes.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
dispose(
) → void -
focusActive(
) → void - Focuses the first empty cell, or the last cell if all are filled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBackspace(
int index) → void -
onChanged(
String value, int index) → void -
requestFirstFocus(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateFromExternal(
String value) → void - Pushes an external string value into the PIN cells. Designed for custom keyboard widgets that control the field externally.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited