updateInfoWindow method

Future<void> updateInfoWindow(
  1. String markerId,
  2. String text
)

Update the info window text for a marker

Implementation

Future<void> updateInfoWindow(String markerId, String text) async {
  try {
    await _channel.invokeMethod('updateInfoWindow', {
      'markerId': markerId,
      'text': text,
    });
  } catch (e) {
    debugPrint('Error updating info window: $e');
  }
}