UniqueKey constructor Null safety

UniqueKey()

Creates a key that is equal only to itself.

The key cannot be created with a const constructor because that implies that all instantiated keys would be the same instance and therefore not be unique.

Implementation

// ignore: prefer_const_constructors_in_immutables , never use const for this class
UniqueKey();