updateImageSource method
Future<void>
updateImageSource(
- String imageSourceId,
- Uint8List? bytes,
- LatLngQuad? coordinates
override
Implementation
@override
Future<void> updateImageSource(
String imageSourceId, Uint8List? bytes, LatLngQuad? coordinates) async {
try {
return await _channel
.invokeMethod('style#updateImageSource', <String, Object?>{
'imageSourceId': imageSourceId,
'bytes': bytes,
'length': bytes?.length,
'coordinates': coordinates?.toList()
});
} on PlatformException catch (e) {
return Future.error(e);
}
}