copyWith method
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,
- BoxHeightStyle? selectionHeightStyle,
- 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,
);
}