diff --git a/lib/ui/text.dart b/lib/ui/text.dart index 8a03b68c68fa1..4e9c97cca2f95 100644 --- a/lib/ui/text.dart +++ b/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.