ScreenSize constructor

ScreenSize({
  1. dynamic initialWidth,
  2. dynamic initialHeight,
  3. dynamic width,
  4. dynamic height,
})

Implementation

ScreenSize({initialWidth, initialHeight, width, height}) {
  func_call.malInfo();
  defaultHeight = initialHeight;
  defaultWidth = initialWidth;
  _width = width;
  _height = height;
  _widthMultiplyingFactor = _width! / defaultWidth!;
  _heightMultiplyingFactor = _height! / defaultHeight!;
  print('this width ' + _width.toString());
  print('default width ' + defaultWidth.toString());
  print('this height ' + _height.toString());
  print('default height ' + defaultHeight.toString());
  print('default heightMulti ' + _widthMultiplyingFactor.toString());
  print('default widthMulti' + _heightMultiplyingFactor.toString());
}