updateService method
Implementation
@override
Future<bool> updateService({
String? notificationTitle,
String? notificationText,
Function? callback,
}) async {
if (await isRunningService) {
final options = <String, dynamic>{
'notificationContentTitle': notificationTitle,
'notificationContentText': notificationText,
};
if (callback != null) {
options['callbackHandle'] =
PluginUtilities.getCallbackHandle(callback)?.toRawHandle();
}
return await methodChannel.invokeMethod('updateService', options);
}
return false;
}