@@ -192,6 +192,12 @@ class Style {
192
192
/// Default: Width.auto()
193
193
Width ? width;
194
194
195
+ /// CSS attribute "`max-width` "
196
+ ///
197
+ /// Inherited: no,
198
+ /// Default: null
199
+ Width ? maxWidth;
200
+
195
201
/// CSS attribute "`word-spacing` "
196
202
///
197
203
/// Inherited: yes,
@@ -261,6 +267,7 @@ class Style {
261
267
this .verticalAlign = VerticalAlign .baseline,
262
268
this .whiteSpace,
263
269
this .width,
270
+ this .maxWidth,
264
271
this .wordSpacing,
265
272
this .before,
266
273
this .after,
@@ -353,6 +360,7 @@ class Style {
353
360
verticalAlign: other.verticalAlign,
354
361
whiteSpace: other.whiteSpace,
355
362
width: other.width,
363
+ maxWidth: other.maxWidth,
356
364
wordSpacing: other.wordSpacing,
357
365
before: other.before,
358
366
after: other.after,
@@ -438,6 +446,7 @@ class Style {
438
446
VerticalAlign ? verticalAlign,
439
447
WhiteSpace ? whiteSpace,
440
448
Width ? width,
449
+ Width ? maxWidth,
441
450
double ? wordSpacing,
442
451
String ? before,
443
452
String ? after,
@@ -481,6 +490,7 @@ class Style {
481
490
verticalAlign: verticalAlign ?? this .verticalAlign,
482
491
whiteSpace: whiteSpace ?? this .whiteSpace,
483
492
width: width ?? this .width,
493
+ maxWidth: maxWidth ?? this .maxWidth,
484
494
wordSpacing: wordSpacing ?? this .wordSpacing,
485
495
before: beforeAfterNull == true ? null : before ?? this .before,
486
496
after: beforeAfterNull == true ? null : after ?? this .after,
0 commit comments