SigilOtpSlot class

A single slot of the sigil style.

The slot itself is deliberately quiet — a dark rounded rectangle with a hairline border. It owns no highlight of its own: the focus ring is a separate widget that glides across the whole row. All a slot does is catch its digit, which rises into place while a spark strikes along the bottom edge.

Inheritance

Constructors

SigilOtpSlot({Key? key, required String char, required double width, required double height, required double borderRadius, required Color backgroundColor, required Color borderColor, required Color accentColor, TextStyle? textStyle, bool isActive = false})
Creates a SigilOtpSlot.
const

Properties

accentColor Color
Color of the spark that strikes when the digit lands.
final
backgroundColor Color
Fill color of the slot.
final
borderColor Color
Color of the hairline border.
final
borderRadius double
Corner radius of the slot.
final
char String
The character shown inside the slot, or an empty string.
final
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the slot.
final
isActive bool
Whether this slot is the one the ring currently sits on.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle?
Style of the digit. Defaults to a style scaled to height.
final
width double
Width of the slot.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SigilOtpSlot>
Creates the mutable state for this widget at a given location in the tree.
override
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.
inherited
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