Entity<Key extends EntityKey>.create constructor

Entity<Key extends EntityKey>.create({
  1. String? id,
  2. int? timeMills,
})

Constructs an Entity object with optional id and timeMills.

Implementation

Entity.create({
  String? id,
  int? timeMills,
})  : idOrNull = id,
      timeMillsOrNull = timeMills;