text method Null safety

dynamic text(
  1. {required String string,
  2. Color? color,
  3. double? size,
  4. TextAlign? align}
)

Implementation

static text(
    {required String string, Color? color, double? size, TextAlign? align}) {
  TextStyle style = _textStyle(color: color, size: size);
  return (_isIos())
      ? _iOSText(string: string, style: style, align: align)
      : _androidText(string: string, style: style, align: align);
}