mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make ParagraphConstraints have const constructor (flutter/engine#7346)
This commit is contained in:
parent
708bc41304
commit
c00f855ac5
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user