[null-safety] fix soundness of Paragraph._addPlaceholder (flutter/engine#21994)

This commit is contained in:
Jonah Williams
2020-10-20 09:57:59 -07:00
committed by GitHub
parent 7b9356f615
commit 97b83448f6

View File

@@ -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.