MappableMap constructor

MappableMap({
  1. Key? key,
  2. PlatformViewType platformViewType = PlatformViewType.Compat,
  3. TextDirection? textDirection,
  4. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  5. PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  6. required void onMapCreated(
    1. MapWindow
    ),
  7. double? scale,
})

Implementation

MappableMap({
  super.key,
  super.platformViewType,
  super.textDirection,
  super.gestureRecognizers,
  super.hitTestBehavior,
  required this.onMapCreated,
  this.scale,
}) : super(
        onViewCreated: (view) {
          final window = scale == null
              ? mapkit.createMapWindow(view)
              : mapkit.createMapWindowWithScale(view,
                  customScaleFactor: scale);
          onMapCreated(window);

          return true;
        },
      );