InlineTextStyle class
A FlameTextStyle used to style an inline text element.
Note: the fields on this class are equivalent to the fields on Flutter's TextStyle class; check its documentation for more details.
- Inheritance
-
- Object
- FlameTextStyle
- InlineTextStyle
- Annotations
Constructors
-
InlineTextStyle({Color? color, String? fontFamily, double? fontSize, double? fontScale, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, double? height, TextLeadingDistribution? leadingDistribution, List<
Shadow> ? shadows, List<FontFeature> ? fontFeatures, List<FontVariation> ? fontVariations, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, Paint? background, Paint? foreground})
Properties
- background → Paint?
-
final
- color → Color?
-
final
- decoration → TextDecoration?
-
final
- decorationColor → Color?
-
final
- decorationStyle → TextDecorationStyle?
-
final
- decorationThickness → double?
-
final
- fontFamily → String?
-
final
-
fontFeatures
→ List<
FontFeature> ? -
final
- fontScale → double?
-
final
- fontSize → double?
-
final
- fontStyle → FontStyle?
-
final
-
fontVariations
→ List<
FontVariation> ? -
final
- fontWeight → FontWeight?
-
final
- foreground → Paint?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- leadingDistribution → TextLeadingDistribution?
-
final
- letterSpacing → double?
-
final
- renderer → TextRenderer
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
Shadow> ? -
final
- wordSpacing → double?
-
final
Methods
-
asTextRenderer(
) → TextPaint -
asTextStyle(
) → TextStyle -
copyWith(
covariant InlineTextStyle other) → InlineTextStyle -
Creates a new FlameTextStyle, preferring the properties of
other
if present, falling back to the properties ofthis
.override -
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