Failure class

Representing a failure includes the method name and the failure details.

Constructors

Failure(String methodName, String details)
Constructor requiring all fields during initialization.

Properties

details String
The details of the failure such as stack trace.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
methodName String
The name of the test method which failed.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() String
Serializes the object to JSON.
toString() String
A string representation of this object. [...]
override

Operators

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

Static Methods

fromJsonString(String jsonString) Failure
Decode a JSON string to create a Failure object.