logoRasterSize function

({int height, int width}) logoRasterSize(
  1. LogoDimensions dimensions,
  2. int chars
)

Implementation

({int width, int height}) logoRasterSize(LogoDimensions dimensions, int chars) => (
      width: math.max(1, (dimensions.widthFraction * chars * dotsPerChar).round()),
      height: math.max(1, (dimensions.heightLines * dotsPerLine).round()),
    );