metricTable method Null safety

Widget metricTable(
  1. double widthCM
)

Implementation

Widget metricTable(double widthCM) => table(
    widthCM,
    [
      row([
        cell(text(' cm \u00f7 2.54')),
        cell(arrowRight(2)),
        cell(text('in'))
      ]),
      row([
        cell(text(' kg \u00d7 2.204622622')),
        cell(arrowRight(2)),
        cell(list([text('lbm'), space(0.3)]))
      ]),
      row([
        cell(text(' \u200a\u2113 \u00f7 3.785411784')),
        cell(arrowRight(2)),
        cell(text('gal'))
      ]),
      row([
        cell(text(' \u00b0C \u00d7 1.8 + 32')),
        cell(arrowRight(2)),
        cell(text('\u00b0F'))
      ]),
    ],
    drawVerticalLines: false);