An immutable parse result that is either a Success or a Failure.
Properties
-
buffer
→ String
-
The buffer we are working on.
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isFailure
→ bool
-
Returns
true
if this result indicates a parse failure.
no setter
-
isSuccess
→ bool
-
Returns
true
if this result indicates a parse success.
no setter
-
message
→ String
-
Returns the error message of this result, or throws an UnsupportedError
if this is a parse success.
no setter
-
position
→ int
-
The current position in the buffer.
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ R
-
Returns the parsed value of this result, or throws a ParserException
if this is a parse failure.
no setter