xOf method

double xOf(
  1. num position
)

A position's pixel.

Implementation

double xOf(num position) => plotLeft + (position - from) * _spacing;