makeTypedRpcCall<T> method

Future<T> makeTypedRpcCall<T>(
  1. String method, [
  2. List? params
])

Implementation

Future<T> makeTypedRpcCall<T>(
  String method, [
  List<dynamic>? params,
]) async {
  final result = await makeRpcCall(method, params);
  if (result == null) throw Exception('Null result');
  return typeFactory<T>(result);
}