removeMarker method

Future<void> removeMarker(
  1. String markerId
)

Remove a marker from the map

Implementation

Future<void> removeMarker(String markerId) async {
  try {
    await _channel.invokeMethod('removeMarker', {'markerId': markerId});
  } catch (e) {
    debugPrint('Error removing marker: $e');
  }
}