NudgeText class
Constructors
-
NudgeText(NudgeBox box, {required String text, required double fontSize, required FontWeight weight, required Color color, required TextAlign align, double? lineHeight, List<
NudgeTextSpan> spans = const []}) -
const
Properties
- align → TextAlign
-
final
- box → NudgeBox
-
finalinherited
- color → Color
-
final
- fontSize → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineHeight → double?
-
Block-level line height (unitless multiplier) for the whole text; the
dashboard authors one value, not per-span.
null= engine default.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spans
→ List<
NudgeTextSpan> -
Optional rich overlay: styled runs drawn on top of the base style above.
Empty = render the plain text with the base style, exactly as before.
final
- text → String
-
final
- weight → FontWeight
-
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