preferredLineHeight method
Returns preferred line height at specified position
in text.
Implementation
@override
double preferredLineHeight(TextPosition position) {
final child = childAtPosition(position);
return child.preferredLineHeight(TextPosition(offset: position.offset - child.container.offset));
}