Remove comment on caching line metrics (#93128)

This commit is contained in:
Tomasz Gucio 2021-11-08 18:23:04 +01:00 committed by GitHub
parent 93db40ad12
commit c005552a68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<ui.LineMetrics> computeLineMetrics() {
assert(!_debugNeedsLayout);
return _lineMetricsCache ??= _paragraph!.computeLineMetrics();