getBaseline static method

num Function(TextBlock, num)? getBaseline()

Gets the function that, given the TextBlock and numerical text height, computes the position to draw the baseline 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,
)? getBaseline() => (
      _i3.TextBlock p0,
      _i2.num p1,
    ) =>
        _i4.callMethod(
          _i4.callMethod(
            _declaredTextBlock,
            'getBaseline',
            [],
          ),
          r'call',
          [
            _declaredTextBlock,
            p0,
            p1,
          ],
        );