FlyTextStyleToken class

Text style values with fontSize and height

Implemented types

Constructors

FlyTextStyleToken({required TextStyle xs, required TextStyle sm, required TextStyle base, required TextStyle lg, required TextStyle xl, required TextStyle xl2, required TextStyle xl3, required TextStyle xl4, required TextStyle xl5, required TextStyle xl6, required TextStyle xl7, required TextStyle xl8, required TextStyle xl9, Map<String, TextStyle> extras = const {}})
const

Properties

base TextStyle
base Text style values with fontSize and height
final
extras Map<String, TextStyle>
Additional custom values
final
hashCode int
The hash code for this object.
no setteroverride
keys Iterable<String>
Get all available keys (canonical + extras)
no setteroverride
lg TextStyle
lg Text style values with fontSize and height
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sm TextStyle
sm Text style values with fontSize and height
final
xl TextStyle
xl Text style values with fontSize and height
final
xl2 TextStyle
2xl Text style values with fontSize and height
final
xl3 TextStyle
3xl Text style values with fontSize and height
final
xl4 TextStyle
4xl Text style values with fontSize and height
final
xl5 TextStyle
5xl Text style values with fontSize and height
final
xl6 TextStyle
6xl Text style values with fontSize and height
final
xl7 TextStyle
7xl Text style values with fontSize and height
final
xl8 TextStyle
8xl Text style values with fontSize and height
final
xl9 TextStyle
9xl Text style values with fontSize and height
final
xs TextStyle
xs Text style values with fontSize and height
final

Methods

copyWith({TextStyle? xs, TextStyle? sm, TextStyle? base, TextStyle? lg, TextStyle? xl, TextStyle? xl2, TextStyle? xl3, TextStyle? xl4, TextStyle? xl5, TextStyle? xl6, TextStyle? xl7, TextStyle? xl8, TextStyle? xl9, Map<String, TextStyle>? extras}) FlyTextStyleToken
Create a copy with updated values
lerp(FlyTextStyleToken other, double t) FlyTextStyleToken
Linear interpolation between two tokens
merge(FlyToken<TextStyle> other) FlyTextStyleToken
Merge another token into this one (right side wins)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, TextStyle value) FlyTextStyleToken
Put a new value for the given key
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override
operator [](String key) TextStyle?
Access value by key (canonical or extra)
override

Static Methods

defaultTextStyle() FlyTextStyleToken
Create default values