updateNotificationText static method

Future<void> updateNotificationText({
  1. String? title,
  2. String? msg,
  3. String? bigMsg,
})

Implementation

static Future<void> updateNotificationText(
    {String? title, String? msg, String? bigMsg}) async {
  final Map<String, dynamic> arg = {};

  if (title != null) {
    arg[Keys.SETTINGS_ANDROID_NOTIFICATION_TITLE] = title;
  }

  if (msg != null) {
    arg[Keys.SETTINGS_ANDROID_NOTIFICATION_MSG] = msg;
  }

  if (bigMsg != null) {
    arg[Keys.SETTINGS_ANDROID_NOTIFICATION_BIG_MSG] = bigMsg;
  }

  await _channel.invokeMethod(Keys.METHOD_PLUGIN_UPDATE_NOTIFICATION, arg);
}