buildView method

  1. @override
Widget buildView(
  1. int creationId,
  2. PlatformViewCreatedCallback onPlatformViewCreated, {
  3. required CameraPosition initialCameraPosition,
  4. Set<Marker> markers = const <Marker>{},
  5. Set<Polygon> polygons = const <Polygon>{},
  6. Set<Polyline> polylines = const <Polyline>{},
  7. Set<Circle> circles = const <Circle>{},
  8. Set<TileOverlay> tileOverlays = const <TileOverlay>{},
  9. Set<ClusterManager> clusterManagers = const <ClusterManager>{},
  10. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  11. Map<String, dynamic> mapOptions = const <String, dynamic>{},
})
override

Returns a widget displaying the map view.

Implementation

@override
Widget buildView(
  int creationId,
  PlatformViewCreatedCallback onPlatformViewCreated, {
  required CameraPosition initialCameraPosition,
  Set<Marker> markers = const <Marker>{},
  Set<Polygon> polygons = const <Polygon>{},
  Set<Polyline> polylines = const <Polyline>{},
  Set<Circle> circles = const <Circle>{},
  Set<TileOverlay> tileOverlays = const <TileOverlay>{},
  Set<ClusterManager> clusterManagers = const <ClusterManager>{},
  Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  Map<String, dynamic> mapOptions = const <String, dynamic>{},
}) {
  return buildViewWithTextDirection(
    creationId,
    onPlatformViewCreated,
    initialCameraPosition: initialCameraPosition,
    textDirection: TextDirection.ltr,
    markers: markers,
    polygons: polygons,
    polylines: polylines,
    circles: circles,
    tileOverlays: tileOverlays,
    clusterManagers: clusterManagers,
    gestureRecognizers: gestureRecognizers,
    mapOptions: mapOptions,
  );
}