TextStyleToken class final
A type style, as Compose's TextStyle takes it from the type scale.
Constructors
- TextStyleToken({required FontFamilyToken fontFamily, required FontWeight fontWeight, required Sp fontSize, required Sp lineHeight, required Sp letterSpacing})
-
A style of
fontFamilyatfontWeightandfontSizeonlineHeight.const
Properties
- fontFamily → FontFamilyToken
-
The typeface the token names.
final
- fontSize → Sp
-
The size.
final
- fontWeight → FontWeight
-
The weight.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- letterSpacing → Sp
-
The tracking, added between letters.
final
- lineHeight → Sp
-
The line's height (Compose's
lineHeight), not a multiple of the size.final - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited