MappableMap constructor
MappableMap({
- Key? key,
- PlatformViewType platformViewType = PlatformViewType.Compat,
- TextDirection? textDirection,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> > - PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
- required void onMapCreated(),
- 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;
},
);