Future invokeMethod(String channel, String method, [ List args = const [] ])

Source

static Future<dynamic> invokeMethod(String channel, String method, [ List<dynamic> args = const <Null>[] ]) {
  return sendJSON(channel, <String, dynamic>{
    'method': method,
    'args': args,
  });
}