NeomageNotification constructor
NeomageNotification({
- required String id,
- required String title,
- required String body,
- NotificationPriority priority = NotificationPriority.normal,
- List<
NotificationAction> actions = const [], - Duration? autoHide,
- String? category,
- Map<
String, dynamic> ? data,
Implementation
NeomageNotification({
required this.id,
required this.title,
required this.body,
this.priority = NotificationPriority.normal,
this.actions = const [],
this.autoHide,
this.category,
this.data,
}) : createdAt = DateTime.now();