DesignDateSegmentDetails class

One segment of a DesignDateField or DesignTimeField, as the look paints it.

Annotations

Constructors

DesignDateSegmentDetails({required DesignDateSegmentType type, required String text, required bool isPlaceholder, required Set<WidgetState> states})
A segment's details.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isPlaceholder → bool
Whether it holds nothing yet, and text is its placeholder.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
states → Set<WidgetState>
Its states: WidgetState.focused while it has the focus, WidgetState.disabled when the field takes no input, WidgetState.error when the field's value is out of range.
final
text → String
Its text: the value in the reader's digits ("07", "2026", "PM"), what has been typed so far, or, when isPlaceholder, the empty segment's letters ("mm", "dd", "yyyy"; "––" for a time's).
final
type → DesignDateSegmentType
What it holds.
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