PushNotificationCard constructor

const PushNotificationCard({
  1. Key? key,
  2. required String title,
  3. required String body,
  4. IconData? icon,
  5. Color? iconColor,
  6. Color? iconBackground,
  7. String? timestamp,
  8. List<PushNotificationAction> actions = const [],
  9. VoidCallback? onTap,
  10. VoidCallback? onDismiss,
  11. bool isUnread = true,
  12. String? avatarUrl,
})

Implementation

const PushNotificationCard({
  super.key,
  required this.title,
  required this.body,
  this.icon,
  this.iconColor,
  this.iconBackground,
  this.timestamp,
  this.actions = const [],
  this.onTap,
  this.onDismiss,
  this.isUnread = true,
  this.avatarUrl,
});