create method
MapOptions
create({
- required void onMapReady()?,
- required TapCallback onTap,
- OpenMapSettings? settings,
Implementation
MapOptions create({
required void Function()? onMapReady,
required TapCallback onTap,
OpenMapSettings? settings,
}) {
var def = settings?.defaultOptions?.create(
onMapReady: onMapReady,
onTap: onTap,
settings: null) ??
MapOptions();
return MapOptions(
maxBounds: maxBounds ?? def.maxBounds,
keepAlive:
keepAlive ?? def.keepAlive,
crs: crs ?? def.crs,
center: _center ?? def.center,
bounds: _bounds ?? def.bounds,
boundsOptions: _boundsOptions ?? def.boundsOptions,
zoom: zoom ?? def.zoom,
rotation: rotation ?? def.rotation,
debugMultiFingerGestureWinner:
debugMultiFingerGestureWinner ?? def.debugMultiFingerGestureWinner,
enableMultiFingerGestureRace:
enableMultiFingerGestureRace ?? def.enableMultiFingerGestureRace,
rotationThreshold: rotationThreshold ?? def.rotationThreshold,
rotationWinGestures: rotationWinGestures ?? def.rotationWinGestures,
pinchZoomThreshold: pinchZoomThreshold ?? def.pinchZoomThreshold,
pinchZoomWinGestures: pinchZoomWinGestures ?? def.pinchZoomWinGestures,
pinchMoveThreshold: pinchMoveThreshold ?? def.pinchMoveThreshold,
pinchMoveWinGestures: pinchMoveWinGestures ?? def.pinchMoveWinGestures,
enableScrollWheel: enableScrollWheel ?? def.enableScrollWheel,
minZoom: minZoom ?? def.minZoom,
maxZoom: maxZoom ?? def.maxZoom,
interactiveFlags: interactiveFlags ?? def.interactiveFlags,
onLongPress: onLongPress ?? def.onLongPress,
onMapReady: onMapReady,
onTap: onTap,
onPositionChanged: onPositionChanged ?? def.onPositionChanged,
slideOnBoundaries: slideOnBoundaries ?? def.slideOnBoundaries,
adaptiveBoundaries: adaptiveBoundaries ?? def.adaptiveBoundaries,
screenSize: screenSize ?? def.screenSize,
swPanBoundary: swPanBoundary ?? def.swPanBoundary,
nePanBoundary: nePanBoundary ?? def.nePanBoundary,
);
}