createNotification abstract method

Future<int> createNotification({
  1. int? id,
  2. required String title,
  3. String? body,
})

Create an immediate notification with id, title, and body. If the id is not specified, a random id will be generated.

Returns the id of the notification created.

Implementation

Future<int> createNotification({
  int? id,
  required String title,
  String? body,
});