TextStyleData class
The subset of a text node's visual style the rules need, mirrored from
Flutter's TextStyle so the core stays free of any Flutter dependency.
Populated only for nodes that paint text; null otherwise.
- Annotations
-
- @immutable
Constructors
- TextStyleData({double? fontSize, int? fontWeight})
-
Creates a TextStyleData.
const
-
TextStyleData.fromJson(Map<
String, dynamic> json) -
Parses a TextStyleData from
json.factory
Properties
- fontSize → double?
-
The font size in logical pixels, when known.
final
- fontWeight → int?
-
The font weight on the usual 100–900 scale (400 = normal, 700 = bold),
when known.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isBold → bool
-
Whether the text is bold, i.e. a weight of 700 or heavier.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - The JSON representation of this style.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override