DeekWebListener class abstract
A listener to be invoked by the DeekWebClient when a request starts or stops processing. Each request will be given a unique ID which is represented by the requestId parameter.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestCompleted(
{required String requestId, required int statusCode}) → void - Notifies the listneer that a request has completed succesfully. requestId is the unique ID for the request. statusCode is the HTTP response code returned from the server.
-
requestCompletedWithError(
{required String requestId, int? statusCode, String? error}) → void - Notifies the listener that a request has completed with an error. requestId is the unique ID for the request. If there was a response from the server, it is included in statusCode, otherwise null. error is the error thrown by the sytem, if any.
-
requestStarted(
{required String requestId, required String requestType}) → void - Notifies the listener that a new request has started. requestId is a unique ID for the requset requestType is the name provided by the DeekWebRequest
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited