pos method

double pos(
  1. int index
)

A row's position: its place, or on a linear scale its number.

Implementation

double pos(int index) {
  if (!linear) return index.toDouble();
  final v = index >= 0 && index < count ? rows[index][spec.x.field] : null;
  return v is num ? v.toDouble() : double.nan;
}