TextPainterTextElement constructor

TextPainterTextElement(
  1. TextPainter _textPainter
)

Implementation

TextPainterTextElement(this._textPainter)
    : _box = LineMetrics(
        ascent: _textPainter.computeDistanceToActualBaseline(
          flutter.TextBaseline.alphabetic,
        ),
        width: _textPainter.width,
        height: _textPainter.height,
      );