bodySmall method

Text bodySmall({
  1. Key? key,
  2. BuildContext? context,
  3. TextAlign? align,
  4. double? fontSize,
  5. Color? color,
  6. FontWeight? fontWeight,
  7. int? maxLines,
  8. bool? softWrap,
  9. TextOverflow? overflow = TextOverflow.clip,
  10. Locale? locale,
})

Implementation

Text bodySmall(
    {Key? key,
    BuildContext? context,
    TextAlign? align,
    double? fontSize,
    Color? color,
    FontWeight? fontWeight,
    int? maxLines,
    bool? softWrap,
    TextOverflow? overflow = TextOverflow.clip,
    Locale? locale}) {
  BuildContext c = context ?? globalContext;
  TextStyle style = c.themeData.textTheme.bodySmall!.copyWith(color: color, fontSize: fontSize, fontWeight: fontWeight);
  return Text(this, key: key, style: style, textAlign: align, overflow: overflow, softWrap: softWrap, maxLines: maxLines, locale: locale);
}