singleLine method
Implementation
Widget singleLine() {
if (this is WrappedText) {
return (this as WrappedText).copyWith(
softWrap: (context, theme) => false,
maxLines: (context, theme) => 1,
);
}
return WrappedText(
softWrap: (context, theme) => false,
maxLines: (context, theme) => 1,
child: this,
);
}