DesignTokenValue class

Implementers
Annotations
  • @freezed

Constructors

DesignTokenValue.color([@Default(Color(0xFF000000)) @ColorTokenValueConverter() Color value])
const
factory
DesignTokenValue.dimension(double value)
const
factory
DesignTokenValue.fontStyle({required TextStyle textStyle})
const
factory
DesignTokenValue.icon({required List<IconPath> paths, required Size size, required Offset offset})
const
factory
DesignTokenValue.radius({@Default(0.0) double smoothing, @Default(BorderRadius.zero) BorderRadius radius})
const
factory
DesignTokenValue.spacing(EdgeInsets value)
const
factory
DesignTokenValue.unknown()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult unknown(UnknownTokenValue value), required TResult dimension(SizeTokenValue value), required TResult color(ColorTokenValue value), required TResult radius(RadiusTokenValue value), required TResult spacing(SpacingTokenValue value), required TResult fontStyle(FontStyleTokenValue value), required TResult icon(IconTokenValue value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult unknown(UnknownTokenValue value)?, TResult dimension(SizeTokenValue value)?, TResult color(ColorTokenValue value)?, TResult radius(RadiusTokenValue value)?, TResult spacing(SpacingTokenValue value)?, TResult fontStyle(FontStyleTokenValue value)?, TResult icon(IconTokenValue value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult unknown(UnknownTokenValue value)?, TResult dimension(SizeTokenValue value)?, TResult color(ColorTokenValue value)?, TResult radius(RadiusTokenValue value)?, TResult spacing(SpacingTokenValue value)?, TResult fontStyle(FontStyleTokenValue value)?, TResult icon(IconTokenValue value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult unknown()?, TResult dimension(double value)?, TResult color(Color value)?, TResult radius(double smoothing, BorderRadius radius)?, TResult spacing(EdgeInsets value)?, TResult fontStyle(TextStyle textStyle)?, TResult icon(List<IconPath> paths, Size size, Offset offset)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult unknown(), required TResult dimension(double value), required TResult color(Color value), required TResult radius(double smoothing, BorderRadius radius), required TResult spacing(EdgeInsets value), required TResult fontStyle(TextStyle textStyle), required TResult icon(List<IconPath> paths, Size size, Offset offset)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult unknown()?, TResult dimension(double value)?, TResult color(Color value)?, TResult radius(double smoothing, BorderRadius radius)?, TResult spacing(EdgeInsets value)?, TResult fontStyle(TextStyle textStyle)?, TResult icon(List<IconPath> paths, Size size, Offset offset)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited