buildViewWithTextDirection method
Widget
buildViewWithTextDirection(
- int creationId,
- PlatformViewCreatedCallback onPlatformViewCreated, {
- required CameraPosition initialCameraPosition,
- required TextDirection textDirection,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - 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>{},
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,
);
}