StringReader class

A class that implements the IReader interface for reading strings.

Constructors

StringReader(String input)

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
input String
The input string to be read.
final
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
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
peek() String?
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() String?
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