copyWith method

TablePlusEditableTheme copyWith({
  1. Color? editingCellColor,
  2. TextStyle? editingTextStyle,
  3. TextStyle? hintStyle,
  4. Color? editingBorderColor,
  5. double? editingBorderWidth,
  6. BorderRadius? editingBorderRadius,
  7. EdgeInsets? textFieldPadding,
  8. EdgeInsets? cellContainerPadding,
  9. Color? cursorColor,
  10. TextAlignVertical? textAlignVertical,
  11. Color? focusedBorderColor,
  12. Color? enabledBorderColor,
  13. BorderRadius? borderRadius,
  14. Color? fillColor,
  15. bool? filled,
  16. 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,
  );
}