indexOfKey method

int? indexOfKey(
  1. Object? key
)

The position of the row with this key; null for none.

Implementation

int? indexOfKey(Object? key) =>
    (_keys ??= {for (var i = 0; i < count; i++) rows[i][spec.key]: i})[key];