Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6ce33dd

Browse files
author
Jonah Williams
authored
[null-safety] fix soundness of Paragraph._addPlaceholder (#21994)
1 parent eb6f7f8 commit 6ce33dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ class ParagraphBuilder extends NativeFieldWrapperClass2 {
22422242
_placeholderCount++;
22432243
_placeholderScales.add(scale);
22442244
}
2245-
String _addPlaceholder(double width, double height, int alignment, double baselineOffset, int? baseline) native 'ParagraphBuilder_addPlaceholder';
2245+
String? _addPlaceholder(double width, double height, int alignment, double baselineOffset, int? baseline) native 'ParagraphBuilder_addPlaceholder';
22462246

22472247
/// Applies the given paragraph style and returns a [Paragraph] containing the
22482248
/// added text and associated styling.

0 commit comments

Comments
 (0)