allowsBackgroundLocationUpdates property
Allows background location updates
Implementation
bool? get allowsBackgroundLocationUpdates {
final String? response =
_config[DSPrefKeysPosition.allowsBackgroundLocationUpdates];
if (response == null) {
return null;
}
if (response == '1') {
return true;
} else {
return false;
}
}
Allows background location updates
Implementation
set allowsBackgroundLocationUpdates(final bool? value) {
if (value != null) {
_config[DSPrefKeysPosition.allowsBackgroundLocationUpdates] =
value ? '1' : '0';
} else {
_config.remove(DSPrefKeysPosition.allowsBackgroundLocationUpdates);
}
}