diff --git a/packages/flutter/lib/src/painting/text_painter.dart b/packages/flutter/lib/src/painting/text_painter.dart index 13beb12055..f080abc45b 100644 --- a/packages/flutter/lib/src/painting/text_painter.dart +++ b/packages/flutter/lib/src/painting/text_painter.dart @@ -988,10 +988,6 @@ class TextPainter { /// widgets to a particular line. /// /// Valid only after [layout] has been called. - /// - /// This can potentially return a large amount of data, so it is not recommended - /// to repeatedly call this. Instead, cache the results. The cached results - /// should be invalidated upon the next successful [layout]. List computeLineMetrics() { assert(!_debugNeedsLayout); return _lineMetricsCache ??= _paragraph!.computeLineMetrics();