getUnderline static method

num Function(TextBlock, num)? getUnderline()

Gets the function that, given the TextBlock and numerical text height, computes the position to draw the underline of a line of text in all TextBlocks. By default this is null and default behavior returns (textHeight * 0.75).

This computation affects drawing only, and does not change TextBlock measurement calculations.

Implementation

static _i2.num Function(
  _i3.TextBlock,
  _i2.num,
)? getUnderline() => (
      _i3.TextBlock p0,
      _i2.num p1,
    ) =>
        _i4.callMethod(
          _i4.callMethod(
            _declaredTextBlock,
            'getUnderline',
            [],
          ),
          r'call',
          [
            _declaredTextBlock,
            p0,
            p1,
          ],
        );