bold static method

Text bold(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. TextDirection? textDirection,
  6. Locale? locale,
  7. bool? softWrap,
  8. TextOverflow? overflow,
  9. TextScaler? textScaler,
  10. int? maxLines,
  11. String? semanticsLabel,
  12. TextWidthBasis? textWidthBasis,
  13. TextHeightBehavior? textHeightBehavior,
  14. Color? selectionColor,
})

Creates a text widget with bold style

Implementation

static Text bold(
  String data, {
  Key? key,
  TextStyle? style,
  TextAlign? textAlign,
  TextDirection? textDirection,
  Locale? locale,
  bool? softWrap,
  TextOverflow? overflow,
  TextScaler? textScaler,
  int? maxLines,
  String? semanticsLabel,
  TextWidthBasis? textWidthBasis,
  TextHeightBehavior? textHeightBehavior,
  Color? selectionColor,
}) => Text(
  data,
  key: key,
  style: (style ?? const TextStyle()).copyWith(fontWeight: FontWeight.bold),
  textAlign: textAlign,
  textDirection: textDirection,
  locale: locale,
  softWrap: softWrap,
  overflow: overflow,
  textScaler: textScaler,
  maxLines: maxLines,
  semanticsLabel: semanticsLabel,
  textWidthBasis: textWidthBasis,
  textHeightBehavior: textHeightBehavior,
  selectionColor: selectionColor,
);