centerText static method

Widget centerText(
  1. String text
)

Creates a centered text widget.

Parameters:

  • text: The text to display

Implementation

static Widget centerText(String text)
{
  return Center(
    child: Text(text),
  );
}