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