init static method

dynamic init(
  1. int? number
)

Implementation

static init(int? number) {
  int uiWidth = number is int ? number : 750;
  _ratio = _width / uiWidth;
}