@@ -192,6 +192,12 @@ class Style {
192192 /// Default: Width.auto()
193193 Width ? width;
194194
195+ /// CSS attribute "`max-width` "
196+ ///
197+ /// Inherited: no,
198+ /// Default: null
199+ Width ? maxWidth;
200+
195201 /// CSS attribute "`word-spacing` "
196202 ///
197203 /// Inherited: yes,
@@ -261,6 +267,7 @@ class Style {
261267 this .verticalAlign = VerticalAlign .baseline,
262268 this .whiteSpace,
263269 this .width,
270+ this .maxWidth,
264271 this .wordSpacing,
265272 this .before,
266273 this .after,
@@ -353,6 +360,7 @@ class Style {
353360 verticalAlign: other.verticalAlign,
354361 whiteSpace: other.whiteSpace,
355362 width: other.width,
363+ maxWidth: other.maxWidth,
356364 wordSpacing: other.wordSpacing,
357365 before: other.before,
358366 after: other.after,
@@ -438,6 +446,7 @@ class Style {
438446 VerticalAlign ? verticalAlign,
439447 WhiteSpace ? whiteSpace,
440448 Width ? width,
449+ Width ? maxWidth,
441450 double ? wordSpacing,
442451 String ? before,
443452 String ? after,
@@ -481,6 +490,7 @@ class Style {
481490 verticalAlign: verticalAlign ?? this .verticalAlign,
482491 whiteSpace: whiteSpace ?? this .whiteSpace,
483492 width: width ?? this .width,
493+ maxWidth: maxWidth ?? this .maxWidth,
484494 wordSpacing: wordSpacing ?? this .wordSpacing,
485495 before: beforeAfterNull == true ? null : before ?? this .before,
486496 after: beforeAfterNull == true ? null : after ?? this .after,
0 commit comments