InputOTPChildData class
Data passed to InputOTPChild.build for rendering OTP input fields.
Contains information about focus nodes, index positions, current value, and callbacks for changing values. Used internally by InputOTP to coordinate input fields.
Properties
- focusNode → FocusNode?
-
Focus node for this input field.
final
- groupIndex → int
-
Index of the group this child belongs to.
final
- groupLength → int
-
Total number of children in this group.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Overall index within all OTP children.
final
- nextFocusNode → FocusNode?
-
Focus node for the next input field.
final
- previousFocusNode → FocusNode?
-
Focus node for the previous input field.
final
- relativeIndex → int
-
Relative index within the group.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int?
-
Current value (codepoint) of this input field.
final
Methods
-
changeValue(
int? value) → void - Updates the value for this OTP input field.
-
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