ResponseHandlerInterface class abstract
Interface for custom response handling.
Implement this to provide your own error parsing, message extraction, or HTML detection logic.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handleResponse(
Response response) → String? - Returns an error message if the response indicates failure, null otherwise.
-
isHtmlOrTextResponse(
String responseBody) → bool - Returns true if the response body appears to be HTML or plain text (not JSON).
-
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 ==(
Object other) → bool -
The equality operator.
inherited