initializeSize function

dynamic initializeSize(
  1. int designWidth,
  2. int designHeight
)

Implementation

initializeSize(

    /// Give the width of the screen which is in the User Interface(UI) from Figma/Adobe xD/Photoshop/etc
    int designWidth,

    /// Give the height of the screen which is in the User Interface(UI) from Figma/Adobe xD/Photoshop/etc
    int designHeight) {
  mWidth = designWidth;
  mHeight = designHeight;
}