updateIcon method

Future<void> updateIcon(
  1. MarkerId markerId,
  2. Uint8List iconBytes
)

Replaces an existing marker icon using encoded image bytes.

Implementation

Future<void> updateIcon(MarkerId markerId, Uint8List iconBytes) async {
  if (iconBytes.isEmpty) {
    throw _argumentException(_controller, 'updateMarkerIcon', 'empty_icon');
  }
  final transport = await _controller._readyTransport();
  await transport.updateMarkerIcon(markerId, iconBytes);
}