Failure class
An immutable failed parse result.
Constructors
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
messageatposition.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
resultatposition.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