place method

double? place(
  1. Object? at
)

A place the spec names: a number on a linear scale, a row's key on rows. Null when it names none.

Implementation

double? place(Object? at) {
  if (at == null) return null;
  if (linear) return at is num ? at.toDouble() : null;
  return indexOfKey(at)?.toDouble();
}