TextOverlayStyle class

Style of a text overlay.

Annotations

Constructors

TextOverlayStyle({required String fontId, required Color color, TextAlign align = TextAlign.center, TextBackgroundStyle background = TextBackgroundStyle.none, double fontSize = defaultFontSize})
Creates a text style.
const

Properties

align → TextAlign
Line alignment: left, center or right.
final
background → TextBackgroundStyle
Background style.
final
color → Color
Text colour (or background colour for TextBackgroundStyle.solid and TextBackgroundStyle.highlight).
final
fontId → String
StoryFont.id.
final
fontSize → double
Font size in canvas units at scale 1.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? fontId, Color? color, TextAlign? align, TextBackgroundStyle? background, double? fontSize}) → TextOverlayStyle
Returns a copy with the given values replaced.
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.
override

Constants

defaultFontSize → const double
Default font size in canvas units.