TextStyleSpec class

A partially specified Flutter TextStyle. Unset fields inherit.

Constructors

TextStyleSpec({String? fontFamily, double? fontSize, int? fontWeight, bool? italic, IrColor? color, double? height, double? letterSpacing, String? token})
const

Properties

color → IrColor?
final
fontFamily → String?
final
fontSize → double?
final
fontWeight → int?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Line height as a multiple of fontSize, like TextStyle.height.
final
italic → bool?
final
letterSpacing → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String?
The most specific named theme style this was derived from (TextTheme/bodyMedium). Confirmed against the final typography when a text node is built.
final

Methods

merge(TextStyleSpec? other) → TextStyleSpec
Values set on other win, like TextStyle.merge.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String defaultFamily) → IrTextStyle
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited