From c8f0a62ba566315aec275b8cc9a86cae576f7371 Mon Sep 17 00:00:00 2001 From: Justin McCandless Date: Thu, 2 May 2019 13:25:37 -0700 Subject: [PATCH] Add longestLine to stub_ui so that build tests pass --- lib/stub_ui/lib/text.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/stub_ui/lib/text.dart b/lib/stub_ui/lib/text.dart index f6e1bd92fd1b8..8d240f51052e0 100644 --- a/lib/stub_ui/lib/text.dart +++ b/lib/stub_ui/lib/text.dart @@ -1310,6 +1310,14 @@ class Paragraph { throw UnimplementedError(); } + /// The distance from the left edge of the leftmost glyph to the right edge of + /// the rightmost glyph in the paragraph. + /// + /// Valid only after [layout] has been called. + double get longestLine { + throw UnimplementedError(); + } + /// Returns the smallest width beyond which increasing the width never /// decreases the height. ///