showNotice method

void showNotice(
  1. String text
)

Shows text as notice for a moment.

Implementation

void showNotice(String text) {
  _noticeTimer?.cancel();
  notice.value = text;
  _noticeTimer = Timer(_noticeDuration, () => notice.value = null);
}