addTerminal static method
创建终端
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;
}