SPTypographyTokens class
Typography size tokens that can be applied to a Flutter TextTheme.
- Annotations
Constructors
Properties
- body → double
-
Body text size.
final
- caption → double
-
Caption/supporting text size.
final
- display → double
-
Display text size.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline → double
-
Headline text size.
final
- label → double
-
Label text size.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → double
-
Title text size.
final
Methods
-
apply(
TextTheme base) → TextTheme - Applies the token sizes while preserving the base styles' other fields.
-
copyWith(
{double? display, double? headline, double? title, double? body, double? label, double? caption}) → SPTypographyTokens - Returns a copy with selected 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.
inherited
Static Methods
-
lerp(
SPTypographyTokens a, SPTypographyTokens b, double t) → SPTypographyTokens - Linearly interpolates between two typography scales.