Entity<Key extends EntityKey> constructor

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

Implementation

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