Session constructor

Session({
  1. String? id,
  2. Object? read()?,
})

id is the id of a stored session (cache driver). read gives the stored session on first use, or null for a new one.

Implementation

Session({this.id, this._read});