buildViewWithTextDirection method
Widget
buildViewWithTextDirection(
- int creationId,
- PlatformViewCreatedCallback onPlatformViewCreated, {
- required CameraPosition initialCameraPosition,
- required TextDirection textDirection,
- 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< ? gestureRecognizers,OneSequenceGestureRecognizer> > - Map<
String, dynamic> mapOptions = const <String, dynamic>{},
override
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
@override
Widget buildViewWithTextDirection(
int creationId,
PlatformViewCreatedCallback onPlatformViewCreated, {
required CameraPosition initialCameraPosition,
required TextDirection textDirection,
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 _buildView(
creationId,
onPlatformViewCreated,
widgetConfiguration: MapWidgetConfiguration(
initialCameraPosition: initialCameraPosition,
textDirection: textDirection),
mapObjects: MapObjects(
markers: markers,
polygons: polygons,
polylines: polylines,
circles: circles,
clusterManagers: clusterManagers,
tileOverlays: tileOverlays),
mapOptions: mapOptions,
);
}