@@ -182,6 +182,13 @@ class Style {
182
182
///
183
183
int maxLine;
184
184
185
+ /// TextOverflow
186
+ ///
187
+ ///
188
+ ///
189
+ ///
190
+ TextOverflow textOverflow;
191
+
185
192
Style ({
186
193
this .backgroundColor = Colors .transparent,
187
194
this .color,
@@ -215,6 +222,7 @@ class Style {
215
222
this .alignment,
216
223
this .markerContent,
217
224
this .maxLine,
225
+ this .textOverflow,
218
226
}) {
219
227
if (this .alignment == null &&
220
228
(display == Display .BLOCK || display == Display .LIST_ITEM )) {
@@ -288,8 +296,9 @@ class Style {
288
296
//TODO merge border
289
297
alignment: other.alignment,
290
298
markerContent: other.markerContent,
291
-
299
+
292
300
maxLine: other.maxLine,
301
+ textOverflow: other.textOverflow,
293
302
);
294
303
}
295
304
@@ -323,6 +332,7 @@ class Style {
323
332
whiteSpace: child.whiteSpace ?? whiteSpace,
324
333
wordSpacing: child.wordSpacing ?? wordSpacing,
325
334
maxLine: child.maxLine ?? maxLine,
335
+ textOverflow: child.textOverflow ?? textOverflow,
326
336
);
327
337
}
328
338
@@ -359,6 +369,7 @@ class Style {
359
369
Alignment alignment,
360
370
String markerContent,
361
371
int maxLine,
372
+ TextOverflow textOverflow,
362
373
}) {
363
374
return Style (
364
375
backgroundColor: backgroundColor ?? this .backgroundColor,
@@ -394,6 +405,7 @@ class Style {
394
405
alignment: alignment ?? this .alignment,
395
406
markerContent: markerContent ?? this .markerContent,
396
407
maxLine: maxLine ?? this .maxLine,
408
+ textOverflow: textOverflow ?? this .textOverflow,
397
409
);
398
410
}
399
411
0 commit comments