buildViewWithTextDirection method

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

Returns a widget displaying the map view - deprecated, use buildViewWithConfiguration instead.

This method is similar to buildView, but contains a parameter for platforms that require a text direction.

Default behavior passes all parameters except textDirection to buildView. This is for backward compatibility with existing implementations. Platforms that use the text direction should override this as the primary implementation, and delegate to it from buildView.

Implementation

Widget buildViewWithTextDirection(
  int creationId,
  PlatformViewCreatedCallback onPlatformViewCreated, {
  required CameraPosition initialCameraPosition,
  required TextDirection textDirection,
  Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  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>{},
  Map<String, dynamic> mapOptions = const <String, dynamic>{},
}) {
  return buildView(
    creationId,
    onPlatformViewCreated,
    initialCameraPosition: initialCameraPosition,
    markers: markers,
    polygons: polygons,
    polylines: polylines,
    circles: circles,
    tileOverlays: tileOverlays,
    gestureRecognizers: gestureRecognizers,
    mapOptions: mapOptions,
  );
}