showError method

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

Implementation

void showError(String message, {String? title}) {
  state = state.copyWith(
    message: message,
    title: title,
    type: NotificationType.error,
    hasNotification: true,
  );
}