DisplayFace class abstract
Draws display glyphs and the display panel for a theme family.
Constructors
- DisplayFace()
-
const
Properties
- clearStagger → Duration
-
Delay between characters when the whole line clears, right to left
(Retro long-press clear: 15 ms per digit); zero = no stagger.
no setter
- glyphOff → Duration
-
How long an unlit glyph takes to disappear (Retro: off 50 ms).
no setter
- glyphOn → Duration
-
How long a newly lit glyph takes to appear (Retro: segments on 30 ms).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- panelColor → Color
-
The panel colour the display text sits on (its contrast backdrop).
no setter
- panelMargin → EdgeInsets
-
Space between the display's edges and the panel.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
drawsChar(
int codeUnit) → bool -
Whether this face draws the UTF-16 code unit
codeUnititself. -
lerpTo(
DisplayFace other, double t) → DisplayFace -
This face
tof the way toother(theme transitions between two themes of the same family); switches at the midpoint by default. -
maskedSpan(
String text, TextStyle style) → TextSpan -
textinstylewith the face-drawn characters transparent: the same layout asTextSpan(text: text, style: style). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paintGlyphs(
Canvas canvas, TextPainter painter, String text, {required Offset origin, required Color color, required double fontSize, int start = 0, int? end, double opacity(int index)?}) → void -
Paints the face-drawn characters
[start, end)oftext, whichpainterhas laid out (with maskedSpan) atorigin, incolor.opacity(per character index) fades glyphs in or out. -
paintPanel(
Canvas canvas, Rect rect) → void -
Paints the panel filling
rect. -
textStyle(
TextStyle base) → TextStyle -
The style the font-drawn glyphs use, from the display's
basestyle (e.g. a condensed width axis). Measuring and painting both use it. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited