getWidthFromFlex method

double getWidthFromFlex(
  1. double width,
  2. int flex,
  3. int items,
  4. double spacing,
)

Implementation

double getWidthFromFlex(double width, int flex, int items, double spacing) {
  return (width * flex / MyScreenMedia.flexColumns).floorToDouble();
}