updateLocation method
更新地图位置
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;
}
}