widthTransformer method
Gives you the power to get a portion of the width. 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 width
reducedBy
is a percentage value of how much of the width you want
if you for example want 46% of the width, then you reduce it by 56%.
Implementation
double widthTransformer({double dividedBy = 1, double reducedBy = 0.0}) =>
(mediaQuerySize.width - ((mediaQuerySize.width / 100) * reducedBy)) /
dividedBy;