Instantiates it
WeightedKey({ required this.name, required this.getter, required this.weight, }) : assert(weight > 0, 'Weight should be positive and non-zero');