NotificationModel class Null safety

Notification model class

Inheritance
Annotations

Constructors

NotificationModel({required int id, required String title, required DateTime dateTime, Category category = Category.Uncategorized, String? description})

Properties

category Category
read / write, inherited
categoryIcon MapEntry<IconData, Color>
Map notification category to an icon and a color
read-only, inherited
dateTime DateTime
read / write, inherited
description String?
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
@primaryKey, read / write, override-getter
read bool
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title String
read / write, inherited

Methods

markAsRead() → dynamic
To mark the notification as read
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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