SeniorNotification class

Constructors

SeniorNotification({required String body, required String footer, required bool isRead, Future<bool?> removalConfirmation()?, VoidCallback? onRemove, String? removeLabel, SeniorNotificationListItemSeverity severity = SeniorNotificationListItemSeverity.none, required String title})
The information for creating a notification in the SeniorNotificationList component.
const

Properties

body String
The body content of the notification.
final
The footer content of the notification.
final
hashCode int
The hash code for this object.
no setterinherited
isRead bool
Whether the notification has been read.
final
onRemove VoidCallback?
Function that runs when the item is removed.
final
removalConfirmation → (Future<bool?> Function()?)
Removal confirmation function returning a boolean that defines whether the removal will continue (true) or be canceled (false)
final
removeLabel String?
Text that appears in the option to remove the item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity SeniorNotificationListItemSeverity
The severity status of item, represented by a color dot next to title on notification item.
final
title String
The title of the notification.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited