RowItem.text constructor

RowItem.text(
  1. String title,
  2. String description, {
  3. Key? key,
  4. TextStyle? titleStyle,
  5. TextStyle? descriptionStyle,
  6. TextOverflow? textOverflow,
  7. int? maxLines,
})

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,
    ),
  );
}