WordpressFailureResponse<T> class final

Represents a failure response.

Inheritance
Available Extensions
Annotations
  • @immutable

Constructors

WordpressFailureResponse({required WordpressError? error, required int code, required dynamic rawData, Map<String, dynamic> headers = const {}, Map<String, dynamic> requestHeaders = const {}, Map<String, dynamic>? extra, Duration duration = Duration.zero, String? message})
const

Properties

code int
finalinherited
duration Duration
finalinherited
error → WordpressError?
final
exception Object?
no setter
extra Map<String, dynamic>?
finalinherited
hashCode int
The hash code for this object.
no setteroverride
headers Map<String, dynamic>
finalinherited
message String?
finalinherited
requestHeaders Map<String, dynamic>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
no setter

Methods

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

Operators

operator ==(covariant WordpressFailureResponse other) bool
The equality operator.
override
operator [](dynamic key) → dynamic
inherited