placementIn method

({double baseline, Offset origin, TextStyle style, double width}) placementIn(
  1. Size box
)

Where the letters go in box, with the style and width they're laid out at (infinite for left-aligned auto-width lines) and the first baseline's depth, so other text laid out with it lies exactly over them.

Implementation

({Offset origin, TextStyle style, double width, double baseline}) placementIn(Size box) {
  final _Typeset typeset = _currentTypeset();
  final Offset origin = typeset.origin(box, _verticalTrim, _textLayout);
  return (
    origin: origin,
    style: typeset.textStyle,
    width: typeset._layoutWidth!,
    baseline: origin.dy + typeset._firstBaseline,
  );
}