text function

Widget text (
  1. String text,
  2. {double fontSize,
  3. FontWeight fontWeight}
)

Return a Text widget populated with text optionally formatted with a fontSize and fontWeight

This is a convenience function.

Implementation

Widget text(String text,{double fontSize,FontWeight fontWeight}) {
  return Text(text,
    style:
    TextStyle(fontSize: fontSize, fontWeight: fontWeight),
  );
}