DynamicToken class

easy for users to define their own Tokens

Implementers

Constructors

DynamicToken(String name, [List<String>? enums])
const
DynamicToken.asEnum([Object? name])
factory
DynamicToken.from(Token enumToken)
factory
DynamicToken.fromEnum(List<String> options, {Object? named})
factory

Properties

enums List<String>?
final
hashCode int
The hash code for this object.
no setterinherited
isEnum bool
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token Token
no setter

Methods

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

Operators

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