font static method

double font(
  1. double size
)

Implementation

static double font(double size) {
  return isSmallDevice ? size * 0.8 : size;
}