toWidget method
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!),
);