From 97b83448f64ddcf90421d53a7fef6cdf665c4544 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 20 Oct 2020 09:57:59 -0700 Subject: [PATCH] [null-safety] fix soundness of Paragraph._addPlaceholder (flutter/engine#21994) --- engine/src/flutter/lib/ui/text.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/ui/text.dart b/engine/src/flutter/lib/ui/text.dart index 8a03b68c68..4e9c97cca2 100644 --- a/engine/src/flutter/lib/ui/text.dart +++ b/engine/src/flutter/lib/ui/text.dart @@ -2242,7 +2242,7 @@ class ParagraphBuilder extends NativeFieldWrapperClass2 { _placeholderCount++; _placeholderScales.add(scale); } - String _addPlaceholder(double width, double height, int alignment, double baselineOffset, int? baseline) native 'ParagraphBuilder_addPlaceholder'; + String? _addPlaceholder(double width, double height, int alignment, double baselineOffset, int? baseline) native 'ParagraphBuilder_addPlaceholder'; /// Applies the given paragraph style and returns a [Paragraph] containing the /// added text and associated styling.