FlyFontToken class

Font family stacks (sans, serif, mono)

Implemented types

Constructors

FlyFontToken({required List<String> sans, required List<String> serif, required List<String> mono, Map<String, List<String>> extras = const {}})
const

Properties

extras Map<String, List<String>>
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
mono List<String>
mono Font family stacks (sans, serif, mono)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sans List<String>
sans Font family stacks (sans, serif, mono)
final
serif List<String>
serif Font family stacks (sans, serif, mono)
final

Methods

copyWith({List<String>? sans, List<String>? serif, List<String>? mono, Map<String, List<String>>? extras}) FlyFontToken
Create a copy with updated values
merge(FlyToken<List<String>> other) FlyFontToken
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, List<String> value) FlyFontToken
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) List<String>?
Access value by key (canonical or extra)
override

Static Methods

defaultFont() FlyFontToken
Create default values