diff --git a/lib/ui/text.dart b/lib/ui/text.dart index 24eebff1c2009..e77f4a8156bf4 100644 --- a/lib/ui/text.dart +++ b/lib/ui/text.dart @@ -984,7 +984,7 @@ class ParagraphConstraints { /// Creates constraints for laying out a pargraph. /// /// The [width] argument must not be null. - ParagraphConstraints({ + const ParagraphConstraints({ this.width, }) : assert(width != null);