FlyToken<T> class
abstract
Base interface for all Fly tokens
Provides a consistent API for accessing, modifying, and merging design tokens. All token types (spacing, colors, etc.) must implement this interface.
Example usage:
final spacing = FlySpacingBase.defaultSpacing();
final value = spacing['medium']; // Access token
final updated = spacing.put('large', 32.0); // Create new instance with update
final merged = spacing.merge(otherSpacing); // Merge with another token
Constructors
- FlyToken()
Properties
Methods
-
merge(
FlyToken< T> other) → FlyToken<T> - Merge another token into this one (right side wins)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, T value) → FlyToken< T> - Put a new value for the given key
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → T? - Access token value by key using bracket notation