setWidth method

  1. @override
double setWidth(
  1. num width
)
override

width 传入width 返回 适配后的width

Implementation

@override
double setWidth(num width) {
  // TODO: implement setWidth
  return width * (screenWidth! / this.width);
}