@@ -193,6 +193,12 @@ class Style {
193
193
/// Default: Width.auto()
194
194
Width ? width;
195
195
196
+ /// CSS attribute "`max-width` "
197
+ ///
198
+ /// Inherited: no,
199
+ /// Default: null
200
+ Width ? maxWidth;
201
+
196
202
/// CSS attribute "`word-spacing` "
197
203
///
198
204
/// Inherited: yes,
@@ -262,6 +268,7 @@ class Style {
262
268
this .verticalAlign = VerticalAlign .baseline,
263
269
this .whiteSpace,
264
270
this .width,
271
+ this .maxWidth,
265
272
this .wordSpacing,
266
273
this .before,
267
274
this .after,
@@ -355,6 +362,7 @@ class Style {
355
362
verticalAlign: other.verticalAlign,
356
363
whiteSpace: other.whiteSpace,
357
364
width: other.width,
365
+ maxWidth: other.maxWidth,
358
366
wordSpacing: other.wordSpacing,
359
367
before: other.before,
360
368
after: other.after,
@@ -440,6 +448,7 @@ class Style {
440
448
VerticalAlign ? verticalAlign,
441
449
WhiteSpace ? whiteSpace,
442
450
Width ? width,
451
+ Width ? maxWidth,
443
452
double ? wordSpacing,
444
453
String ? before,
445
454
String ? after,
@@ -483,6 +492,7 @@ class Style {
483
492
verticalAlign: verticalAlign ?? this .verticalAlign,
484
493
whiteSpace: whiteSpace ?? this .whiteSpace,
485
494
width: width ?? this .width,
495
+ maxWidth: maxWidth ?? this .maxWidth,
486
496
wordSpacing: wordSpacing ?? this .wordSpacing,
487
497
before: beforeAfterNull == true ? null : before ?? this .before,
488
498
after: beforeAfterNull == true ? null : after ?? this .after,
0 commit comments