ProtocolInvoker class abstract interface

Injectable transport. Test transports can implement this without loading FFI.

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

attachHandleFinalizer(Object owner, int handle) → Object?
Attaches a native finalizer, if this transport provides one. Native FFI uses a token from df_handle_token_new.
detachHandleFinalizer(Object? token) → bool
Detaches and disposes a finalizer token. Returns true when disposing the token also released the native handle (through df_handle_token_release for native FFI).
invoke(Map<String, Object?> request) → Future<Map<String, Object?>>
Convenience Future API for short commands. Implementations may still call FFI on the current isolate; this is not an asynchronous execution claim.
invokeSync(Map<String, Object?> request) → Map<String, Object?>
Invokes a short protocol command synchronously. For an FFI transport this runs on the calling isolate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseHandle(int handle) → void
Releases an owned protocol handle (df_handle_release for native FFI).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited