|
|
|
|
|
|
{ |
|
|
|
public Text(string data, Key key = null, TextStyle style = null, |
|
|
|
TextAlign? textAlign = null, bool? softWrap = null, |
|
|
|
TextOverflow? overflow = null, double? textScaleFactor = null) : base(key) |
|
|
|
TextOverflow? overflow = null, double? textScaleFactor = null, int? maxLines = null) : base(key) |
|
|
|
{ |
|
|
|
D.assert(data != null); |
|
|
|
this.textSpan = null; |
|
|
|
|
|
|
this.softWrap = softWrap; |
|
|
|
this.overflow = overflow; |
|
|
|
this.textScaleFactor = textScaleFactor; |
|
|
|
this.maxLines = maxLines; |
|
|
|
TextOverflow? overflow = null, double? textScaleFactor = null) : base(key) |
|
|
|
TextOverflow? overflow = null, double? textScaleFactor = null, int? maxLines = null) : base(key) |
|
|
|
{ |
|
|
|
D.assert(textSpan != null); |
|
|
|
this.textSpan = textSpan; |
|
|
|
|
|
|
this.softWrap = softWrap; |
|
|
|
this.overflow = overflow; |
|
|
|
this.textScaleFactor = textScaleFactor; |
|
|
|
this.maxLines = maxLines; |
|
|
|
} |
|
|
|
|
|
|
|
public readonly string data; |
|
|
|