leading property

double get leading
inherited

Use leading to support line height.

  1. LineHeight must greater than fontSize
  2. 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;