startService static method
start the service
Implementation
static Future<bool?> startService({
bool foreground = true,
String subTitle = "",
bool showWhen = false,
String title = "Notification Listener",
String description = "Service is running",
}) async {
var data = {};
data["foreground"] = foreground;
data["subTitle"] = subTitle;
data["showWhen"] = showWhen;
data["title"] = title;
data["description"] = description;
var res = await _methodChannel.invokeMethod('plugin.startService', data);
return res;
}