copyWith method

PlutoGridStyleConfig copyWith({
  1. bool? enableGridBorderShadow,
  2. bool? enableColumnBorderVertical,
  3. bool? enableColumnBorderHorizontal,
  4. bool? enableCellBorderVertical,
  5. bool? enableCellBorderHorizontal,
  6. bool? enableRowColorAnimation,
  7. Color? gridBackgroundColor,
  8. Color? rowColor,
  9. PlutoOptional<Color?>? oddRowColor,
  10. PlutoOptional<Color?>? evenRowColor,
  11. Color? activatedColor,
  12. Color? checkedColor,
  13. Color? cellColorInEditState,
  14. Color? cellColorInReadOnlyState,
  15. PlutoOptional<Color?>? cellColorGroupedRow,
  16. Color? dragTargetColumnColor,
  17. Color? iconColor,
  18. Color? disabledIconColor,
  19. Color? menuBackgroundColor,
  20. Color? gridBorderColor,
  21. Color? borderColor,
  22. Color? activatedBorderColor,
  23. Color? inactivatedBorderColor,
  24. double? iconSize,
  25. double? rowHeight,
  26. double? columnHeight,
  27. double? columnFilterHeight,
  28. EdgeInsets? defaultColumnTitlePadding,
  29. EdgeInsets? defaultColumnFilterPadding,
  30. EdgeInsets? defaultCellPadding,
  31. TextStyle? columnTextStyle,
  32. TextStyle? cellTextStyle,
  33. IconData? columnContextIcon,
  34. IconData? columnResizeIcon,
  35. PlutoOptional<Icon?>? columnAscendingIcon,
  36. PlutoOptional<Icon?>? columnDescendingIcon,
  37. IconData? rowGroupExpandedIcon,
  38. IconData? rowGroupCollapsedIcon,
  39. IconData? rowGroupEmptyIcon,
  40. BorderRadiusGeometry? gridBorderRadius,
  41. BorderRadiusGeometry? gridPopupBorderRadius,
})

Implementation

PlutoGridStyleConfig copyWith({
  bool? enableGridBorderShadow,
  bool? enableColumnBorderVertical,
  bool? enableColumnBorderHorizontal,
  bool? enableCellBorderVertical,
  bool? enableCellBorderHorizontal,
  bool? enableRowColorAnimation,
  Color? gridBackgroundColor,
  Color? rowColor,
  PlutoOptional<Color?>? oddRowColor,
  PlutoOptional<Color?>? evenRowColor,
  Color? activatedColor,
  Color? checkedColor,
  Color? cellColorInEditState,
  Color? cellColorInReadOnlyState,
  PlutoOptional<Color?>? cellColorGroupedRow,
  Color? dragTargetColumnColor,
  Color? iconColor,
  Color? disabledIconColor,
  Color? menuBackgroundColor,
  Color? gridBorderColor,
  Color? borderColor,
  Color? activatedBorderColor,
  Color? inactivatedBorderColor,
  double? iconSize,
  double? rowHeight,
  double? columnHeight,
  double? columnFilterHeight,
  EdgeInsets? defaultColumnTitlePadding,
  EdgeInsets? defaultColumnFilterPadding,
  EdgeInsets? defaultCellPadding,
  TextStyle? columnTextStyle,
  TextStyle? cellTextStyle,
  IconData? columnContextIcon,
  IconData? columnResizeIcon,
  PlutoOptional<Icon?>? columnAscendingIcon,
  PlutoOptional<Icon?>? columnDescendingIcon,
  IconData? rowGroupExpandedIcon,
  IconData? rowGroupCollapsedIcon,
  IconData? rowGroupEmptyIcon,
  BorderRadiusGeometry? gridBorderRadius,
  BorderRadiusGeometry? gridPopupBorderRadius,
}) {
  return PlutoGridStyleConfig(
    enableGridBorderShadow:
        enableGridBorderShadow ?? this.enableGridBorderShadow,
    enableColumnBorderVertical:
        enableColumnBorderVertical ?? this.enableColumnBorderVertical,
    enableColumnBorderHorizontal:
        enableColumnBorderHorizontal ?? this.enableColumnBorderHorizontal,
    enableCellBorderVertical:
        enableCellBorderVertical ?? this.enableCellBorderVertical,
    enableCellBorderHorizontal:
        enableCellBorderHorizontal ?? this.enableCellBorderHorizontal,
    enableRowColorAnimation:
        enableRowColorAnimation ?? this.enableRowColorAnimation,
    gridBackgroundColor: gridBackgroundColor ?? this.gridBackgroundColor,
    rowColor: rowColor ?? this.rowColor,
    oddRowColor: oddRowColor == null ? this.oddRowColor : oddRowColor.value,
    evenRowColor:
        evenRowColor == null ? this.evenRowColor : evenRowColor.value,
    activatedColor: activatedColor ?? this.activatedColor,
    checkedColor: checkedColor ?? this.checkedColor,
    cellColorInEditState: cellColorInEditState ?? this.cellColorInEditState,
    cellColorInReadOnlyState:
        cellColorInReadOnlyState ?? this.cellColorInReadOnlyState,
    cellColorGroupedRow: cellColorGroupedRow == null
        ? this.cellColorGroupedRow
        : cellColorGroupedRow.value,
    dragTargetColumnColor:
        dragTargetColumnColor ?? this.dragTargetColumnColor,
    iconColor: iconColor ?? this.iconColor,
    disabledIconColor: disabledIconColor ?? this.disabledIconColor,
    menuBackgroundColor: menuBackgroundColor ?? this.menuBackgroundColor,
    gridBorderColor: gridBorderColor ?? this.gridBorderColor,
    borderColor: borderColor ?? this.borderColor,
    activatedBorderColor: activatedBorderColor ?? this.activatedBorderColor,
    inactivatedBorderColor:
        inactivatedBorderColor ?? this.inactivatedBorderColor,
    iconSize: iconSize ?? this.iconSize,
    rowHeight: rowHeight ?? this.rowHeight,
    columnHeight: columnHeight ?? this.columnHeight,
    columnFilterHeight: columnFilterHeight ?? this.columnFilterHeight,
    defaultColumnTitlePadding:
        defaultColumnTitlePadding ?? this.defaultColumnTitlePadding,
    defaultColumnFilterPadding:
        defaultColumnFilterPadding ?? this.defaultColumnFilterPadding,
    defaultCellPadding: defaultCellPadding ?? this.defaultCellPadding,
    columnTextStyle: columnTextStyle ?? this.columnTextStyle,
    cellTextStyle: cellTextStyle ?? this.cellTextStyle,
    columnContextIcon: columnContextIcon ?? this.columnContextIcon,
    columnResizeIcon: columnResizeIcon ?? this.columnResizeIcon,
    columnAscendingIcon: columnAscendingIcon == null
        ? this.columnAscendingIcon
        : columnAscendingIcon.value,
    columnDescendingIcon: columnDescendingIcon == null
        ? this.columnDescendingIcon
        : columnDescendingIcon.value,
    rowGroupExpandedIcon: rowGroupExpandedIcon ?? this.rowGroupExpandedIcon,
    rowGroupCollapsedIcon:
        rowGroupCollapsedIcon ?? this.rowGroupCollapsedIcon,
    rowGroupEmptyIcon: rowGroupEmptyIcon ?? this.rowGroupEmptyIcon,
    gridBorderRadius: gridBorderRadius ?? this.gridBorderRadius,
    gridPopupBorderRadius:
        gridPopupBorderRadius ?? this.gridPopupBorderRadius,
  );
}