start static method
void
start({})
Start foreground service. Only works on Android.
Implementation
static void start({
String? notificationChannelId,
String? notificationChannelName,
String? notificationContentTitle,
String? notificationContentText
}) async {
if (Platform.isAndroid)
_mChannel.invokeMethod('startForegroundService', {
'notificationChannelId': notificationChannelId,
'notificationChannelName': notificationChannelName,
'notificationContentTitle': notificationContentTitle,
'notificationContentText': notificationContentText
});
}