preferredLineHeight method

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

Returns preferred line height at specified position in text.

The position parameter must be relative to the node's content.

Implementation

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