copyWith method

MacosTextFieldThemeData copyWith({
  1. BoxDecoration? decoration,
  2. BoxDecoration? focusedDecoration,
  3. EdgeInsets? padding,
  4. TextStyle? placeholderStyle,
  5. TextStyle? style,
  6. StrutStyle? strutStyle,
  7. TextAlign? textAlign,
  8. ToolbarOptions? toolbarOptions,
  9. TextAlignVertical? textAlignVertical,
  10. String? obscuringCharacter,
  11. SmartDashesType? smartDashesType,
  12. SmartQuotesType? smartQuotesType,
  13. double? cursorWidth,
  14. double? cursorHeight,
  15. Radius? cursorRadius,
  16. EdgeInsets? scrollPadding,
  17. Color? cursorColor,
  18. Color? selectionColor,
  19. BoxHeightStyle? selectionHeightStyle,
  20. BoxWidthStyle? selectionWidthStyle,
})

Implementation

MacosTextFieldThemeData copyWith({
  BoxDecoration? decoration,
  BoxDecoration? focusedDecoration,
  EdgeInsets? padding,
  TextStyle? placeholderStyle,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextAlign? textAlign,
  ToolbarOptions? toolbarOptions,
  TextAlignVertical? textAlignVertical,
  String? obscuringCharacter,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  double? cursorWidth,
  double? cursorHeight,
  Radius? cursorRadius,
  EdgeInsets? scrollPadding,
  Color? cursorColor,
  Color? selectionColor,
  ui.BoxHeightStyle? selectionHeightStyle,
  ui.BoxWidthStyle? selectionWidthStyle,
}) {
  return MacosTextFieldThemeData.raw(
    selectionColor: selectionColor ?? this.selectionColor,
    decoration: decoration ?? this.decoration,
    focusedDecoration: focusedDecoration ?? this.focusedDecoration,
    padding: padding ?? this.padding,
    placeholderStyle: placeholderStyle ?? this.placeholderStyle,
    style: style ?? this.style,
    strutStyle: strutStyle ?? this.strutStyle,
    textAlign: textAlign ?? this.textAlign,
    textAlignVertical: textAlignVertical ?? this.textAlignVertical,
    obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
    smartDashesType: smartDashesType ?? this.smartDashesType,
    smartQuotesType: smartQuotesType ?? this.smartQuotesType,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    cursorHeight: cursorHeight ?? this.cursorHeight,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    scrollPadding: scrollPadding ?? this.scrollPadding,
    cursorColor: cursorColor ?? this.cursorColor,
    selectionHeightStyle: selectionHeightStyle ?? this.selectionHeightStyle,
    selectionWidthStyle: selectionWidthStyle ?? this.selectionWidthStyle,
  );
}