buildView abstract method
- required String styleUri,
- PlatformMapCreatedCallback? onMapCreated,
- ViewportState? viewport,
- ViewportTransition? viewportTransition,
- void viewportTransitionCompletion()?,
- void onMapEvent()?,
- MapOptions? mapOptions,
- bool? textureView,
- required AndroidPlatformViewHostingMode androidHostingMode,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - bool? isOpaque = true,
Builds a platform-specific widget for displaying the map.
styleUri is the URI of the map style to load.
onMapCreated is called once the underlying map view is ready, providing
a MapboxMapPlatformInterface that callers use to interact with the map.
mapOptions, textureView, androidHostingMode and gestureRecognizers
are forwarded to the platform implementation when supported. The web
implementation ignores them.
Implementation
Widget buildView({
required String styleUri,
PlatformMapCreatedCallback? onMapCreated,
ViewportState? viewport,
ViewportTransition? viewportTransition,
void Function(bool)? viewportTransitionCompletion,
void Function(MapEvent)? onMapEvent,
MapOptions? mapOptions,
bool? textureView,
required AndroidPlatformViewHostingMode androidHostingMode,
Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
bool? isOpaque = true,
});