copyWith method

TextSettings copyWith({
  1. TextStyle? textStyle,
  2. FocusNode? focusNode,
})

Creates a copy of this but with the given fields replaced with the new values.

Implementation

TextSettings copyWith({TextStyle? textStyle, FocusNode? focusNode}) {
  return TextSettings(
      textStyle: textStyle ?? this.textStyle,
      focusNode: focusNode ?? this.focusNode);
}