Digits class
Large numerals for clocks, timers, and counters, each character drawn five
rows tall. text can contain the digits 0 to 9, :, ., -, and
spaces.
Digits('12:34', color: theme.colorScheme.primary)
Any other character in text throws an ArgumentError when the widget is laid out.
- Inheritance
-
- Object
- Widget
- StatelessWidget
- Digits
- Available extensions
Constructors
Properties
- color → Color?
-
Foreground color used when style is null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- offGlyph → String?
-
When set, "off" segments are painted with this dim glyph (e.g.
·or░) for the two-tone calculator / flip-clock look, and so the digit shape reads on bright backgrounds. Default null leaves them blank.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String
-
Label exposed through the semantic app graph.
final
- style → CellStyle?
-
Complete cell style override for lit digit segments.
final
- text → String
-
The characters to show: the digits 0 to 9,
:,.,-, and spaces.final
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates the Element that will mount this widget into the tree.
inherited
-
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