addMarker method

Future<void> addMarker({
  1. String? title,
  2. required Coordinate position,
})

To Draw a marker on the given position

Implementation

Future<void> addMarker({String? title, required Coordinate position}) async {
  await _methodChannel.invokeMethod(
      'addMarker', {"title": title, "position": position.toMap()});
}