call<T> abstract method
Future<T?>
call<T>(
- String method, [
- Iterable<
Object?> arguments = const [], - CloudflareJsonDecoder<
T> ? decode
Calls an RPC method exposed by the bound Worker.
RPC arguments and return values must be Cloudflare-compatible structured
clone values. Use decode when the result should be converted to a
typed application value.
Implementation
Future<T?> call<T>(
String method, [
Iterable<Object?> arguments = const [],
CloudflareJsonDecoder<T>? decode,
]);