setAutomatic method

  1. @override
double setAutomatic(
  1. num wh
)
override

wh 传入width/height 返回较小的适配

Implementation

@override
double setAutomatic(num wh) {
  // TODO: implement setAutomatic
  return wh * min(screenWidth! / this.width, screenHeight! / this.height);
}