RowItem.text constructor
RowItem.text(})
Builds a 'text-to-text' widget. Useful when the associated value can be represented with a Text widget.
Implementation
factory RowItem.text(
String title,
String description, {
Key? key,
TextStyle? titleStyle,
TextStyle? descriptionStyle,
TextOverflow? textOverflow,
int? maxLines,
}) {
return RowItem(
key: key,
title: _Text(
title,
style: titleStyle,
textAlign: TextAlign.start,
textOverflow: textOverflow,
maxLines: maxLines,
),
description: _Text(
description,
style: descriptionStyle,
textAlign: TextAlign.end,
textOverflow: textOverflow,
maxLines: maxLines,
useDefaultDescriptionColor: true,
),
);
}