Scanner class Null safety

A scanner that reads a string of Unicode characters and emits Tokens.

This scanner is based on the guidelines provided by W3C on svg path, available at https://www.w3.org/TR/SVG11/paths.html.

Constructors

Scanner(String source)
Creates a Scanner that scans source.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isDone bool
checks if the end of string is reached.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
peek() Token?
Returns the next token without consuming it.
scan() Token?
Consumes and returns the next token.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

flagPattern RegExp
The RegExp pattern to match a boolean flag (1 or 0).
final
floatPattern RegExp
The RegExp pattern to match a valid float value. Allowed float values include starting with decimal (.3) and exponent notation (1.3e+4).
final
nonNegativeFloatPattern RegExp
The RegExp pattern to match a valid non-negative float value. Allowed float values include starting with decimal (.3) and exponent notation (1.3e+4).
final

Constants

COMMA → const int
0x2c
LETTER_A → const int
0x41
LETTER_a → const int
0x61
LETTER_C → const int
0x43
LETTER_c → const int
0x63
LETTER_E → const int
0x45
LETTER_e → const int
0x65
LETTER_H → const int
0x68
LETTER_h → const int
0x48
LETTER_L → const int
0x4c
LETTER_l → const int
0x6c
LETTER_M → const int
0x4d
LETTER_m → const int
0x6d
LETTER_Q → const int
0x51
LETTER_q → const int
0x71
LETTER_S → const int
0x53
LETTER_s → const int
0x73
LETTER_T → const int
0x54
LETTER_t → const int
0x74
LETTER_V → const int
0x56
LETTER_v → const int
0x76
LETTER_Z → const int
0x5a
LETTER_z → const int
0x7a
MINUS_SIGN → const int
0x2d
NUMBER_0 → const int
0x30
NUMBER_9 → const int
0x39
PERIOD → const int
0x2e
PLUS_SIGN → const int
0x2b
SP → const int
0x20