restrainViewPort method

void restrainViewPort(
  1. double offsetLeft,
  2. double offsetTop,
  3. double offsetRight,
  4. double offsetBottom,
)

Implementation

void restrainViewPort(double offsetLeft, double offsetTop, double offsetRight,
    double offsetBottom) {
  _contentRect = Rect.fromLTRB(offsetLeft, offsetTop,
      _chartWidth - offsetRight, _chartHeight - offsetBottom);
}