FlyFontWeightToken class

Font weight values

Implemented types

Constructors

FlyFontWeightToken({required FontWeight thin, required FontWeight extralight, required FontWeight light, required FontWeight normal, required FontWeight medium, required FontWeight semibold, required FontWeight bold, required FontWeight extrabold, required FontWeight black, Map<String, FontWeight> extras = const {}})
const

Properties

black FontWeight
black Font weight values
final
bold FontWeight
bold Font weight values
final
extrabold FontWeight
extrabold Font weight values
final
extralight FontWeight
extralight Font weight values
final
extras Map<String, FontWeight>
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
light FontWeight
light Font weight values
final
medium FontWeight
medium Font weight values
final
normal FontWeight
normal Font weight values
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semibold FontWeight
semibold Font weight values
final
thin FontWeight
thin Font weight values
final

Methods

copyWith({FontWeight? thin, FontWeight? extralight, FontWeight? light, FontWeight? normal, FontWeight? medium, FontWeight? semibold, FontWeight? bold, FontWeight? extrabold, FontWeight? black, Map<String, FontWeight>? extras}) FlyFontWeightToken
Create a copy with updated values
lerp(FlyFontWeightToken other, double t) FlyFontWeightToken
Linear interpolation between two tokens
merge(FlyToken<FontWeight> other) FlyFontWeightToken
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, FontWeight value) FlyFontWeightToken
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) FontWeight?
Access value by key (canonical or extra)
override

Static Methods

defaultFontWeight() FlyFontWeightToken
Create default values