startPersistentService method
Starts a persistent foreground service.
Implementation
Future<void> startPersistentService({
required String title,
required String content,
bool autoRestart = true,
String? icon,
}) async {
await _channel.invokeMethod('service.startPersistentService', {
'title': title,
'content': content,
'autoRestart': autoRestart,
'icon': icon,
});
}