copyWith method
TablePlusEditableTheme
copyWith({
- Color? editingCellColor,
- TextStyle? editingTextStyle,
- TextStyle? hintStyle,
- Color? editingBorderColor,
- double? editingBorderWidth,
- BorderRadius? editingBorderRadius,
- EdgeInsets? textFieldPadding,
- EdgeInsets? cellContainerPadding,
- Color? cursorColor,
- TextAlignVertical? textAlignVertical,
- Color? focusedBorderColor,
- Color? enabledBorderColor,
- BorderRadius? borderRadius,
- Color? fillColor,
- bool? filled,
- bool? isDense,
Creates a copy of this theme with the given fields replaced with new values.
Implementation
TablePlusEditableTheme copyWith({
Color? editingCellColor,
TextStyle? editingTextStyle,
TextStyle? hintStyle,
Color? editingBorderColor,
double? editingBorderWidth,
BorderRadius? editingBorderRadius,
EdgeInsets? textFieldPadding,
EdgeInsets? cellContainerPadding,
Color? cursorColor,
TextAlignVertical? textAlignVertical,
Color? focusedBorderColor,
Color? enabledBorderColor,
BorderRadius? borderRadius,
Color? fillColor,
bool? filled,
bool? isDense,
}) {
return TablePlusEditableTheme(
editingCellColor: editingCellColor ?? this.editingCellColor,
editingTextStyle: editingTextStyle ?? this.editingTextStyle,
hintStyle: hintStyle ?? this.hintStyle,
editingBorderColor: editingBorderColor ?? this.editingBorderColor,
editingBorderWidth: editingBorderWidth ?? this.editingBorderWidth,
editingBorderRadius: editingBorderRadius ?? this.editingBorderRadius,
textFieldPadding: textFieldPadding ?? this.textFieldPadding,
cellContainerPadding: cellContainerPadding ?? this.cellContainerPadding,
cursorColor: cursorColor ?? this.cursorColor,
textAlignVertical: textAlignVertical ?? this.textAlignVertical,
focusedBorderColor: focusedBorderColor ?? this.focusedBorderColor,
enabledBorderColor: enabledBorderColor ?? this.enabledBorderColor,
borderRadius: borderRadius ?? this.borderRadius,
fillColor: fillColor ?? this.fillColor,
filled: filled ?? this.filled,
isDense: isDense ?? this.isDense,
);
}