clear method

void clear()

Implementation

void clear() {
  if (ctx != null) {
    ctx!.clearRect(0, 0, width, height);
    mouseCtx!.clearRect(0, 0, width, height);
  }
  axis
    ..yDecimals = null
    ..yFrom = 0
    ..yTo = 0;
}