getLocation9377AndSetPoint method

Future<AGMLViewPoint?> getLocation9377AndSetPoint()

Implementation

Future<AGMLViewPoint?> getLocation9377AndSetPoint() async {
  const method = '/getLocation9377AndSetPoint';
  try {
    final response = await _channel.invokeMethod(method) as String;
    final location = AGMLViewPoint.fromJson(jsonDecode(response));
    return location;
  } on PlatformException catch (e) {
    if(kDebugMode) print(e);
    return null;
  }
}