withBold method
Set TextStyle.fontWeight to fontWeight
for the text.
By default, FontWeight.bold is set.
テキストのTextStyle.fontWeightをfontWeight
に設定します。
デフォルトだとFontWeight.boldが設定されます。
Implementation
TextStyle withBold([FontWeight fontWeight = FontWeight.bold]) {
return copyWith(fontWeight: fontWeight);
}