flutter_notification_center/lib/src/models/notification.dart

27 lines
417 B
Dart
Raw Normal View History

2024-04-03 14:38:40 +02:00
enum ScheduleType {
minute,
daily,
weekly,
monthly,
}
class NotificationModel {
NotificationModel({
this.id,
required this.title,
required this.body,
required this.dateTime,
required this.isRead,
this.isScheduled = false,
this.scheduledFor,
});
int? id;
String title;
String body;
DateTime dateTime;
bool isRead;
bool isScheduled;
ScheduleType? scheduledFor;
}