flash method

void flash(
  1. String key,
  2. Object? value
)

Store value under key for this request and the next one that uses the session.

Implementation

void flash(String key, Object? value) {
  put(key, value);
  if (!_flashNew.contains(key)) _flashNew.add(key);
}