startService method
Starts a persistent background service with foreground notification.
Implementation
@override
Future<void> startService({
required String name,
required String notificationTitle,
required String notificationBody,
String? notificationIconName,
int notificationId = 1001,
int? updateIntervalMs,
}) async {
await methodChannel.invokeMethod('startService', {
'name': name,
'notificationTitle': notificationTitle,
'notificationBody': notificationBody,
'notificationIconName': notificationIconName,
'notificationId': notificationId,
'updateIntervalMs': updateIntervalMs,
});
}