addTerminal static method

Future<Result> addTerminal({
  1. required String terminalName,
})

创建终端

Implementation

static Future<Result> addTerminal({
  required String terminalName, //终端名称
}) async {
  final String? json = await _channel.invokeMethod('addTerminal', {
    "terminalName": terminalName,
  });
  Result result = Result.fromJson(jsonDecode(json ?? "{}"));
  return result;
}