setAsForegroundService method
Implementation
Future<void> setAsForegroundService() async {
await _channel.invokeMethod("setForegroundMode", {
'value': true,
});
}
Future<void> setAsForegroundService() async {
await _channel.invokeMethod("setForegroundMode", {
'value': true,
});
}