Result class

Basic implementation of IResult

Mixed-in types

Constructors

Result({required bool isValid, String? expected, dynamic value})
Result.invalid(String? expected, dynamic value)

Properties

expected String?
Optional message for the expected result
final
hashCode int
The hash code for this object.
no setterinherited
isNotValid bool
Handy getter to check if this result is not valid
no setterinherited
isValid bool
Tells us if this result is valid
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ dynamic
getter/setter pairoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Properties

valid Result
Valid result, use this instead if creating a new instance
final