updateNotification method

  1. @override
Future<bool> updateNotification({
  1. String? title,
  2. String? text,
  3. String? icon,
})
override

Implementation

@override
Future<bool> updateNotification({
  String? title,
  String? text,
  String? icon,
}) async {
  final ok = await methodChannel.invokeMethod<bool>('updateNotification', {
    if (title != null) 'notificationTitle': title,
    if (text != null) 'notificationText': text,
    if (icon != null) 'notificationIcon': icon,
  });
  return ok ?? false;
}