nativeStaticCall<T> static method

Future<T> nativeStaticCall<T>(
  1. String namespace,
  2. String method, [
  3. List? args
])

Implementation

static Future<T> nativeStaticCall<T>(
  String namespace,
  String method, [
  List<dynamic>? args,
]) async {
  final messageClient = getGlobalMessageClient();
  final result = await messageClient.sendStaticCall(
    namespace,
    method,
    args ?? [],
  );
  final decoded = messageClient.proto.decodeArg(result.msg);
  return decoded;
}