heightTransformer method

double heightTransformer({
  1. double dividedBy = 1,
  2. double reducedBy = 0.0,
})

Gives you the power to get a portion of the height. Useful for responsive applications.

dividedBy is for when you want to have a portion of the value you would get like for example: if you want a value that represents a third of the screen you can set it to 3, and you will get a third of the height

reducedBy is a percentage value of how much of the height you want if you for example want 46% of the height, then you reduce it by 56%.

Implementation

double heightTransformer({double dividedBy = 1, double reducedBy = 0.0}) =>
    (mediaQuerySize.height - ((mediaQuerySize.height / 100) * reducedBy)) /
    dividedBy;