buildText function
A utility function to build a text widget with the provided text and text style.
Parameters:
text
: The text to display.style
: The style for the text.
Returns: A text widget displaying the provided text with the specified style.
Implementation
Widget buildText(String text, TextStyle style) {
return Text(text, style: style);
}