lineHeightForTextScaler function
Height of one line of style as laid out: the font size, the text
scale, and the line height the theme sets per font.
Use it to size a box that holds one line of text. 1.5 is only for styles with no height.
Implementation
double lineHeightForTextScaler(TextScaler textScaler, TextStyle style) =>
textScaler.scale(style.fontSize!) * (style.height ?? 1.5);