generateMarker method

Future<Marker> generateMarker(
  1. String id,
  2. LatLng position,
  3. String title,
  4. String subtitle,
)

Implementation

Future<Marker> generateMarker(
        String id, LatLng position, String title, String subtitle) async =>
    Marker(
        markerId: MarkerId(id),
        position: position,
        infoWindow: InfoWindow(title: title, snippet: subtitle),
        icon: await getAssetImageMarker());