Skip to content

Commit

Permalink
[null-safety] fix soundness of Paragraph._addPlaceholder (flutter#21994)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Oct 20, 2020
1 parent eb6f7f8 commit 6ce33dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6ce33dd

Please sign in to comment.