copyWith method

TextPaint copyWith(
  1. TextStyle transform(
    1. TextStyle
    ), {
  2. TextDirection? textDirection,
})

Implementation

TextPaint copyWith(
  TextStyle Function(TextStyle) transform, {
  TextDirection? textDirection,
}) {
  return TextPaint(
    style: transform(style),
    textDirection: textDirection ?? this.textDirection,
  );
}