preferredLineHeight method

  1. @override
double preferredLineHeight(
  1. TextPosition position
)
override

Returns preferred line height at specified position in text.

Implementation

@override
double preferredLineHeight(TextPosition position) {
  final child = childAtPosition(position);
  final localPosition =
      TextPosition(offset: position.offset - child.node.offset);
  return child.preferredLineHeight(localPosition);
}