LocalNotification constructor

LocalNotification({
  1. String? identifier,
  2. required String title,
  3. String? subtitle,
  4. String? body,
  5. bool silent = false,
  6. List<LocalNotificationAction>? actions,
})

Implementation

LocalNotification({
  String? identifier,
  required this.title,
  this.subtitle,
  this.body,
  this.silent = false,
  this.actions,
}) {
  if (identifier != null) {
    this.identifier = identifier;
  }
  localNotifier.addListener(this);
}