Loading...
Searching...
No Matches
Notification Class Referenceabstract

Class is used for working with the notifications and storing its data. More...

Inherits Finalizable.

Public Member Functions

bool isValid ()
 

Public Attributes

int get id
 notification's unique identifier.
 
String get title
 notification's title.
 
String get content
 notification's content.
 
String get imageUrl
 notification's image url if specified.
 

Detailed Description

Class is used for working with the notifications and storing its data.

Referenced from: NotificationListener.

Definition at line 24 of file notification.dart.

Member Function Documentation

◆ isValid()

bool Notification.isValid ( )

Member Data Documentation

◆ content

String get Notification.content

notification's content.

Dart code snippet:

// Get notification content
String content = notification.content;
print("Notification content: $content");

Definition at line 61 of file notification.dart.

◆ id

int get Notification.id

notification's unique identifier.

Dart code snippet:

// Get notification ID
int id = notification.id;
print("Notification ID: $id");

Definition at line 39 of file notification.dart.

◆ imageUrl

String get Notification.imageUrl

notification's image url if specified.

Dart code snippet:

// Get notification image URL
String? imageUrl = notification.imageUrl;
if (imageUrl != null) {
print("Notification image URL: $imageUrl");
} else {
print("Notification has no image URL");
}

Definition at line 72 of file notification.dart.

◆ title

String get Notification.title

notification's title.

Dart code snippet:

// Get notification title
String title = notification.title;
print("Notification title: $title");

Definition at line 50 of file notification.dart.


The documentation for this class was generated from the following file: