applyDiff method
Returns a copy of this instance with any non-null settings form diff
replacing the previous values.
Implementation
MapConfiguration applyDiff(MapConfiguration diff) {
return MapConfiguration(
webGestureHandling: diff.webGestureHandling ?? webGestureHandling,
compassEnabled: diff.compassEnabled ?? compassEnabled,
mapToolbarEnabled: diff.mapToolbarEnabled ?? mapToolbarEnabled,
cameraTargetBounds: diff.cameraTargetBounds ?? cameraTargetBounds,
mapType: diff.mapType ?? mapType,
minMaxZoomPreference: diff.minMaxZoomPreference ?? minMaxZoomPreference,
rotateGesturesEnabled:
diff.rotateGesturesEnabled ?? rotateGesturesEnabled,
scrollGesturesEnabled:
diff.scrollGesturesEnabled ?? scrollGesturesEnabled,
tiltGesturesEnabled: diff.tiltGesturesEnabled ?? tiltGesturesEnabled,
fortyFiveDegreeImageryEnabled:
diff.fortyFiveDegreeImageryEnabled ?? fortyFiveDegreeImageryEnabled,
trackCameraPosition: diff.trackCameraPosition ?? trackCameraPosition,
zoomControlsEnabled: diff.zoomControlsEnabled ?? zoomControlsEnabled,
zoomGesturesEnabled: diff.zoomGesturesEnabled ?? zoomGesturesEnabled,
liteModeEnabled: diff.liteModeEnabled ?? liteModeEnabled,
myLocationEnabled: diff.myLocationEnabled ?? myLocationEnabled,
myLocationButtonEnabled:
diff.myLocationButtonEnabled ?? myLocationButtonEnabled,
padding: diff.padding ?? padding,
indoorViewEnabled: diff.indoorViewEnabled ?? indoorViewEnabled,
trafficEnabled: diff.trafficEnabled ?? trafficEnabled,
buildingsEnabled: diff.buildingsEnabled ?? buildingsEnabled,
cloudMapId: diff.cloudMapId ?? cloudMapId,
style: diff.style ?? style,
);
}