toMap method
Converts this IOSSettings to a map for native platform communication.
Returns: A map containing all iOS-specific settings with keys defined in Keys.
Implementation
Map<String, dynamic> toMap() {
return {
Keys.SETTINGS_ACCURACY: accuracy.value,
Keys.SETTINGS_DISTANCE_FILTER: distanceFilter,
Keys.SETTINGS_IOS_SHOWS_BACKGROUND_LOCATION_INDICATOR:
showsBackgroundLocationIndicator,
Keys.SETTINGS_IOS_STOP_WITH_TERMINATE: stopWithTerminate,
};
}