sendNotification method

void sendNotification(
  1. String noteName,
  2. [dynamic body,
  3. String type]
)
override

Send an INotification.

Convenience method to prevent having to construct new INotification instances in our implementation code.

  • Param noteName the name of the note to send
  • Param body - the body of the note (optional)
  • Param type - the type of the note (optional)

Implementation

void sendNotification(String noteName, [dynamic body, String type]) {
  notifyObservers(new Notification(noteName, body, type));
}