Unverified Commit c005552a authored by Tomasz Gucio's avatar Tomasz Gucio Committed by GitHub

Remove comment on caching line metrics (#93128)

parent 93db40ad
...@@ -988,10 +988,6 @@ class TextPainter { ...@@ -988,10 +988,6 @@ class TextPainter {
/// widgets to a particular line. /// widgets to a particular line.
/// ///
/// Valid only after [layout] has been called. /// 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<ui.LineMetrics> computeLineMetrics() { List<ui.LineMetrics> computeLineMetrics() {
assert(!_debugNeedsLayout); assert(!_debugNeedsLayout);
return _lineMetricsCache ??= _paragraph!.computeLineMetrics(); return _lineMetricsCache ??= _paragraph!.computeLineMetrics();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment