init static method

dynamic init(
  1. int? number
)

Implementation

static init(int? number) {
  int uiwidth = number ?? canvasWidth;
  _ratio = _width / uiwidth;
}