text function
- String text,
- {double fontSize,
- 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),
);
}