Context class Null safety

An immutable parse context.

Implementers
Annotations

Constructors

Context(String buffer, int position)
const

Properties

buffer String
The buffer we are working on.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
position int
The current position in the buffer.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

failure<R>(String message, [int? position]) Failure<R>
Returns a result indicating a parse failure.
@inlineJs, @inlineVm
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
success<R>(R result, [int? position]) Success<R>
Returns a result indicating a parse success.
@inlineJs, @inlineVm
toPositionString() String
Returns the current line:column position in the buffer.
toString() String
A string representation of this object. [...]
override

Operators

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