small static method

Text small(
  1. BuildContext context,
  2. String data, {
  3. Color? color,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. StrutStyle? strutStyle,
  7. TextAlign? textAlign,
  8. TextDirection? textDirection,
  9. Locale? locale,
  10. bool? softWrap,
  11. TextOverflow? overflow,
  12. double? textScaleFactor,
  13. int? maxLines,
  14. String? semanticsLabel,
  15. TextWidthBasis? textWidthBasis,
  16. TextHeightBehavior? textHeightBehavior,
})

Implementation

static Text small(
  BuildContext context,
  String data, {
  Color? color,
  double? fontSize,
  FontWeight? fontWeight,
  StrutStyle? strutStyle,
  TextAlign? textAlign,
  TextDirection? textDirection,
  Locale? locale,
  bool? softWrap,
  TextOverflow? overflow,
  double? textScaleFactor,
  int? maxLines,
  String? semanticsLabel,
  TextWidthBasis? textWidthBasis,
  TextHeightBehavior? textHeightBehavior,
}) {
  var style = context.bodySmallStyle?.copyWith(
    color: color,
    fontWeight: fontWeight,
    fontSize: fontSize,
  );
  return Text(
    data,
    style: style,
    strutStyle: strutStyle,
    textAlign: textAlign,
    textDirection: textDirection,
    locale: locale,
    softWrap: softWrap,
    overflow: overflow,
    textScaleFactor: textScaleFactor,
    maxLines: maxLines,
    semanticsLabel: semanticsLabel,
    textWidthBasis: textWidthBasis,
    textHeightBehavior: textHeightBehavior,
  );
}