toWidget method

  1. @override
Widget toWidget(
  1. BuildContext context
)
override

Return the associated Widget

Implementation

@override
Widget toWidget(BuildContext context) => Text(
      caption ?? '',
      overflow: _toTextOverflow(),
      style: _toTextStyle(),
      textAlign: toTextAlign(alignment),
      maxLines: maxLines,
      key: id == null ? null : Key(id!),
    );