The position of the row with this key; null for none.
int? indexOfKey(Object? key) => (_keys ??= {for (var i = 0; i < count; i++) rows[i][spec.key]: i})[key];