updateImageSource method

  1. @override
Future<void> updateImageSource(
  1. String imageSourceId,
  2. Uint8List? bytes,
  3. 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);
  }
}