FailureState class

Carries error information returned on the Right side of an Either response.

Inspect statusCode and message to present meaningful error UI.

Constructors

FailureState({String? message, int? statusCode, dynamic data})
FailureState.fromJson(Map<String, dynamic> json)

Properties

data ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
getter/setter pair

Methods

copyWith({String? message, int? statusCode, dynamic data}) FailureState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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