@@ -193,6 +193,12 @@ class Style {
193193 /// Default: Width.auto()
194194 Width ? width;
195195
196+ /// CSS attribute "`max-width` "
197+ ///
198+ /// Inherited: no,
199+ /// Default: null
200+ Width ? maxWidth;
201+
196202 /// CSS attribute "`word-spacing` "
197203 ///
198204 /// Inherited: yes,
@@ -262,6 +268,7 @@ class Style {
262268 this .verticalAlign = VerticalAlign .baseline,
263269 this .whiteSpace,
264270 this .width,
271+ this .maxWidth,
265272 this .wordSpacing,
266273 this .before,
267274 this .after,
@@ -355,6 +362,7 @@ class Style {
355362 verticalAlign: other.verticalAlign,
356363 whiteSpace: other.whiteSpace,
357364 width: other.width,
365+ maxWidth: other.maxWidth,
358366 wordSpacing: other.wordSpacing,
359367 before: other.before,
360368 after: other.after,
@@ -440,6 +448,7 @@ class Style {
440448 VerticalAlign ? verticalAlign,
441449 WhiteSpace ? whiteSpace,
442450 Width ? width,
451+ Width ? maxWidth,
443452 double ? wordSpacing,
444453 String ? before,
445454 String ? after,
@@ -483,6 +492,7 @@ class Style {
483492 verticalAlign: verticalAlign ?? this .verticalAlign,
484493 whiteSpace: whiteSpace ?? this .whiteSpace,
485494 width: width ?? this .width,
495+ maxWidth: maxWidth ?? this .maxWidth,
486496 wordSpacing: wordSpacing ?? this .wordSpacing,
487497 before: beforeAfterNull == true ? null : before ?? this .before,
488498 after: beforeAfterNull == true ? null : after ?? this .after,
0 commit comments