getHeadingSize function

double getHeadingSize(
  1. int? h
)

Get Heading Size

Implementation

double getHeadingSize(int? h) {
  final Map sizes = {
    1: 28.0,
    2: 24.0,
    3: 22.0,
    4: 20.0,
    5: 18.0,
    6: 16.0,
  };

  return sizes[h] ?? 22.0;
}