TokenFileType enum

The types of generated token files.

Inheritance

Constructors

TokenFileType(String filename)
const

Values

color → const TokenFileType

Color tokens

const TokenFileType("colors.dart")
typography → const TokenFileType

Typography (text style) tokens

const TokenFileType("typography.dart")
numbers → const TokenFileType

Spacers (SizedBox) tokens

const TokenFileType("numbers.dart")
spacers → const TokenFileType

Spacers (SizedBox) tokens

const TokenFileType("spacers.dart")
paddings → const TokenFileType

Paddings (EdgeInsets) tokens

const TokenFileType("paddings.dart")

Properties

className String
Gets the class name for the file type.
no setter
filename String
The name of the generated file for this token.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromFilename(String filename) TokenFileType
Gets the token file type from the filename.
tryFromFilename(String value) TokenFileType?
The same as fromFilename, but returns null if the filename is invalid.

Constants

values → const List<TokenFileType>
A constant List of the values in this enum, in order of their declaration.