SeniorNotification constructor

const SeniorNotification({
  1. required String body,
  2. required String footer,
  3. required bool isRead,
  4. Future<bool?> removalConfirmation()?,
  5. VoidCallback? onRemove,
  6. String? removeLabel,
  7. SeniorNotificationListItemSeverity severity = SeniorNotificationListItemSeverity.none,
  8. required String title,
})

The information for creating a notification in the SeniorNotificationList component.

The body, footer, isRead and title parameters are required.

Implementation

const SeniorNotification({
  required this.body,
  required this.footer,
  required this.isRead,
  this.removalConfirmation,
  this.onRemove,
  this.removeLabel,
  this.severity = SeniorNotificationListItemSeverity.none,
  required this.title,
});