disable method
Disable the background service.
Implementation
Future<bool> disable() async {
if (!_initialized) {
warning('$runtimeType - Background service is not initialized.');
return false;
}
info('Disabling background service...');
_enabled = await FlutterBackground.disableBackgroundExecution();
if (_enabled) {
warning('$runtimeType - Failed to disable background service.');
}
debug('$runtimeType - Background service disabled: $_enabled');
return !_enabled;
}