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