toLabel method

Text toLabel({
  1. double fontSize = 14,
  2. Color color = Colors.black,
  3. FontWeight fontWeight = FontWeight.normal,
})

Implementation

Text toLabel({
  double fontSize = 14,
  Color color = Colors.black,
  FontWeight fontWeight = FontWeight.normal,
}) => Text(
  this ?? '',
  style: TextStyle(fontSize: fontSize, color: color, fontWeight: fontWeight),
);