textWidget method
Utility method to create a styled Text widget using the textAlign and
textStyle, but you can specify the data
.
Implementation
Widget textWidget(String data) => Text(
data,
textAlign: textAlign,
style: textStyle,
);