buildView abstract method

Widget buildView({
  1. required String styleUri,
  2. PlatformMapCreatedCallback? onMapCreated,
  3. ViewportState? viewport,
  4. ViewportTransition? viewportTransition,
  5. void viewportTransitionCompletion(
    1. bool
    )?,
  6. void onMapEvent(
    1. MapEvent
    )?,
  7. MapOptions? mapOptions,
  8. bool? textureView,
  9. required AndroidPlatformViewHostingMode androidHostingMode,
  10. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  11. 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,
});