italic method

TextField italic()

斜体

Implementation

TextField italic() {
  var newStyle = const TextStyle(fontStyle: FontStyle.italic);
  return copyWith(style: style?.merge(newStyle) ?? newStyle);
}