withBold method

TextStyle withBold([
  1. FontWeight fontWeight = FontWeight.bold
])

Set TextStyle.fontWeight to fontWeight for the text.

By default, FontWeight.bold is set.

テキストのTextStyle.fontWeightfontWeightに設定します。

デフォルトだとFontWeight.boldが設定されます。

Implementation

TextStyle withBold([FontWeight fontWeight = FontWeight.bold]) {
  return copyWith(fontWeight: fontWeight);
}