fontWeight method

TextField fontWeight(
  1. FontWeight? weight
)

字体粗细、正斜等

Implementation

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