showSuccess method

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

Implementation

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