buildViewWithConfiguration method

  1. @override
Widget buildViewWithConfiguration(
  1. int creationId,
  2. PlatformViewCreatedCallback onPlatformViewCreated, {
  3. required MapWidgetConfiguration widgetConfiguration,
  4. MapConfiguration mapConfiguration = const MapConfiguration(),
  5. MapObjects mapObjects = const MapObjects(),
})
override

Returns a widget displaying the map view.

Implementation

@override
Widget buildViewWithConfiguration(
  int creationId,
  PlatformViewCreatedCallback onPlatformViewCreated, {
  required MapWidgetConfiguration widgetConfiguration,
  MapConfiguration mapConfiguration = const MapConfiguration(),
  MapObjects mapObjects = const MapObjects(),
}) {
  return _buildView(
    creationId,
    onPlatformViewCreated,
    widgetConfiguration: widgetConfiguration,
    mapObjects: mapObjects,
    mapOptions: jsonForMapConfiguration(mapConfiguration),
  );
}