ColorParser class
A parser to parse a string with color codes.
Constructors
- ColorParser(String text)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int
-
Returns the current index position in the data source.
getter/setter pair
- isDone → bool
-
Returns true if the end of the data source has been reached, false otherwise.
no setter
- length → int
-
Returns the total length of the data source.
no setter
-
reader
→ IReader<
String> -
final
- 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
-
parse(
) → List< ColorToken> - Parse the text and return a list of ColorTokens.
-
peek(
) → StringTokenValue? - Peeks at the next element of type T from the data source without advancing the position. Returns the element peeked at, or null if the end of the data source is reached.
-
read(
) → StringTokenValue? - Reads the next element of type T from the data source, and advances the position by one element. Returns the element read, or null if the end of the data source is reached.
-
setPosition(
int position) → void - Sets the current index position in the data source to the specified value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited