fontWeight method

Text fontWeight(
  1. FontWeight? weight
)

字体粗细、正斜等

Implementation

Text fontWeight(FontWeight? weight) {
  var newStyle = TextStyle(fontWeight: weight);
  return copyWith(style: style?.merge(newStyle) ?? newStyle);
}