showError method

void showError(
  1. String title, {
  2. String? body,
})

Quick error notification.

Implementation

void showError(String title, {String? body}) {
  notifications.show(Notification(
    title: title,
    body: body,
    type: NotificationType.error,
  ));
}