From 048a1cb86bb965cc8bc4a16c8df37088cb72048a Mon Sep 17 00:00:00 2001 From: JKris95 Date: Thu, 4 Aug 2022 22:52:05 +0200 Subject: [PATCH] Adds documentation for PathMetric.length (flutter/engine#34923) --- engine/src/flutter/lib/ui/painting.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index 3783920590b..8be94261688 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -2895,6 +2895,10 @@ class PathMetric { contourIndex = _measure.currentContourIndex; /// Return the total length of the current contour. + /// + /// The length may be calculated from an approximation of the geometry + /// originally added. For this reason, it is not recommended to rely on + /// this property for mathematically correct lengths of common shapes. final double length; /// Whether the contour is closed.