getSizeDevice static method

Size getSizeDevice(
  1. double? widthSize,
  2. double? heightSize
)

Implementation

static Size getSizeDevice(double? widthSize, double? heightSize) {
  var width = widthSize ?? 375;
  var height = heightSize ?? 840;
  return Size(width, height);
}