has method

bool has(
  1. String key
)

Checks if a key exists in the session.

Implementation

bool has(String key) {
  touch();
  if (_session.containsKey(key)) return true;
  final flashOld = _session['_flash_old'];
  if (flashOld is Map && flashOld.containsKey(key)) return true;
  return false;
}