buildViewWithTextDirection method

  1. @Deprecated('Use buildViewWithConfiguration instead.')
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>{},
})

Returns a widget displaying the map view.

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

@Deprecated('Use buildViewWithConfiguration instead.')
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,
  );
}