Failure class

An immutable failed parse result.

Inheritance

Constructors

Failure(String buffer, int position, String message)
Creates a Failure parse result with message at position in the buffer.
const

Properties

buffer → String
The input buffer being parsed.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
The error message of this result.
final
position → int
The current position in the buffer.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Never
The parsed value of this result.
no setteroverride

Methods

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

Operators

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