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.
no setterinherited
methodName String
The name of the test method which failed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.