leading property
Use leading to support line height.
- LineHeight must greater than fontSize
- LineHeight must less than height in input but textarea
Implementation
double get leading =>
lineHeight > fontSize && (maxLines != 1 || height == null || lineHeight < renderStyle.height.computedValue)
? (lineHeight - fontSize - _defaultPadding * 2) / fontSize
: 0;