DesignOtpSlot class

One box, as DesignOtpField.slotBuilder gets it.

Annotations

Constructors

DesignOtpSlot({required int index, required String character, required bool active, required bool focused, required bool enabled, required bool isError, required bool obscured})
A box; the field makes these.
const

Properties

active → bool
Whether the next character goes here (draw the caret, ring it while focused).
final
character → String
Its character, or '' while empty (show a dot instead when obscured).
final
enabled → bool
Whether the field takes input.
final
filled → bool
Whether it holds a character.
no setter
focused → bool
Whether the field has focus.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
Its place, from 0.
final
isError → bool
Whether the code is wrong.
final
obscured → bool
Whether the characters are hidden.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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