startTrack static method

Future<Result> startTrack({
  1. required String terminalId,
  2. required String trackId,
})

轨迹上报

Implementation

static Future<Result> startTrack({
  required String terminalId,
  required String trackId,
}) async {
  final String? json = await _channel.invokeMethod('startTrack', {
    "terminalId": terminalId,
    "trackId": trackId,
  });
  Result result = Result.fromJson(jsonDecode(json ?? "{}"));
  return result;
}