updateLocation method

Future<bool> updateLocation(
  1. double latitude,
  2. double longitude,
  3. bool animated
)

更新地图位置

Implementation

Future<bool> updateLocation(double latitude, double longitude, bool animated) async {
  try {
    return await _channel.invokeMethod('updateLocation', {
      'latitude': latitude,
      'longitude': longitude,
      'animated': animated,
    });
  } catch (e) {
    print('Failed to update location: $e');
    return false;
  }
}