SocketInterceptor class abstract
SocketInterceptor is an abstract class that can be used to intercept requests and responses to and from the server. It contains the onRequest, onResponse, and onError methods. The onRequest method is called before the request is sent to the server. The onResponse method is called after the response is received from the server. The onError method is called when an error occurs.
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
-
onError(
dynamic error) → void -
onEvent(
String event, dynamic data) → dynamic -
onRequest(
SocketRequest request) → SocketRequest -
onResponse(
SocketResponse response) → SocketResponse -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited