Notification constructor

Notification(
  1. String title,
  2. {String? dir,
  3. String? body,
  4. String? lang,
  5. String? tag,
  6. String? icon}
)

Implementation

factory Notification(String title,
    {String? dir, String? body, String? lang, String? tag, String? icon}) {
  var parsedOptions = {};
  if (dir != null) parsedOptions['dir'] = dir;
  if (body != null) parsedOptions['body'] = body;
  if (lang != null) parsedOptions['lang'] = lang;
  if (tag != null) parsedOptions['tag'] = tag;
  if (icon != null) parsedOptions['icon'] = icon;
  return Notification._factoryNotification(title, parsedOptions);
}