Session constructor

Session(
  1. String id,
  2. Map<String, String> data,
  3. DateTime createdTime, {
  4. bool needsUpdate = false,
})

Creates a session object for existing session with given data, id and createdTime

Implementation

Session(this.id, Map<String, String> data, this.createdTime,
    {this.needsUpdate = false}) {
  _data.addAll(data);
}