px static method

dynamic px(
  1. dynamic number
)

Implementation

static px(number) {
  if (!(_ratio is double || _ratio is int)) {
    AdaptUtil.init(750);
  }
  return number * _ratio;
}