ParseIterator<R> class
final
An Iterator that parses contiguous results of type R from an input
String.
See ParseIterable for callback behavior.
- Implemented types
-
- Iterator<
R>
- Iterator<
- Available extensions
Constructors
-
ParseIterator(Parser<
R> parser, String input, {ParseMatchCallback<R> ? onMatch, ParseErrorCallback? onError, ParseCloseCallback? onClose}) -
Creates a ParseIterator on
inputusingparser.
Properties
- current → R
-
The current element.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → String
-
The input string to parse.
final
- onClose → ParseCloseCallback?
-
Callback invoked when iteration finishes or closes.
final
- onError → ParseErrorCallback?
-
Callback invoked when a parse failure occurs.
final
-
onMatch
→ ParseMatchCallback<
R> ? -
Callback invoked when a match is produced.
final
-
parser
→ Parser<
R> -
The parser used to produce elements of type
R.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toJSIterator
→ JSIterator<
T> -
Available on Iterator<
A JSIterator wrapper that proxies to the Dart iterator API.T> , provided by the IteratorToJSIterator extensionno setter
Methods
-
moveNext(
) → bool -
Advances the iterator to the next element of the iteration.
override
-
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