NativeNetworkHooks class
The partner's hooks the native network client calls. Each is optional: only those set cross the platform channel.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onLog → void Function(String line)?
-
One log line, already redacted, never an image.
final
-
onRequest
→ Future<
Map< Function(Map<String, String> >String, Object?> request)? -
Answers the headers to add to a request (method, url, headers).
final
-
onResponse
→ void Function(Map<
String, Object?> response)? -
A response (method, url, status, durationMillis, headers).
final
-
onTokenExpired
→ Future<
String> Function(String previousToken)? -
Answers a new token for the previous one.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited