Entity<Key extends EntityKey> constructor

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

Implementation

const Entity({
  String? id,
  int? timeMills,
  Key? key,
})  : idOrNull = id,
      timeMillsOrNull = timeMills,
      _key = key;