copyWith method

FdcGridToolbarStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
  3. Color? itemTextColor,
  4. Color? itemIconColor,
  5. Color? disabledItemTextColor,
  6. Color? disabledItemIconColor,
  7. double? height,
  8. EdgeInsetsGeometry? padding,
  9. double? searchExpandedWidth,
  10. double? searchFieldHeight,
  11. double? searchFieldBorderRadius,
  12. Color? searchIconColor,
  13. Color? searchClearIconColor,
  14. Color? searchFieldFillColor,
  15. Color? searchFieldBorderColor,
  16. Color? searchFieldFocusedBorderColor,
  17. double? searchFieldBorderWidth,
  18. double? searchFieldFocusedBorderWidth,
})

Creates a copy with selected values replaced.

Implementation

FdcGridToolbarStyle copyWith({
  Color? backgroundColor,
  TextStyle? textStyle,
  Color? itemTextColor,
  Color? itemIconColor,
  Color? disabledItemTextColor,
  Color? disabledItemIconColor,
  double? height,
  EdgeInsetsGeometry? padding,
  double? searchExpandedWidth,
  double? searchFieldHeight,
  double? searchFieldBorderRadius,
  Color? searchIconColor,
  Color? searchClearIconColor,
  Color? searchFieldFillColor,
  Color? searchFieldBorderColor,
  Color? searchFieldFocusedBorderColor,
  double? searchFieldBorderWidth,
  double? searchFieldFocusedBorderWidth,
}) {
  return FdcGridToolbarStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textStyle: textStyle ?? this.textStyle,
    itemTextColor: itemTextColor ?? this.itemTextColor,
    itemIconColor: itemIconColor ?? this.itemIconColor,
    disabledItemTextColor:
        disabledItemTextColor ?? this.disabledItemTextColor,
    disabledItemIconColor:
        disabledItemIconColor ?? this.disabledItemIconColor,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    searchExpandedWidth: searchExpandedWidth ?? this.searchExpandedWidth,
    searchFieldHeight: searchFieldHeight ?? this.searchFieldHeight,
    searchFieldBorderRadius:
        searchFieldBorderRadius ?? this.searchFieldBorderRadius,
    searchIconColor: searchIconColor ?? this.searchIconColor,
    searchClearIconColor: searchClearIconColor ?? this.searchClearIconColor,
    searchFieldFillColor: searchFieldFillColor ?? this.searchFieldFillColor,
    searchFieldBorderColor:
        searchFieldBorderColor ?? this.searchFieldBorderColor,
    searchFieldFocusedBorderColor:
        searchFieldFocusedBorderColor ?? this.searchFieldFocusedBorderColor,
    searchFieldBorderWidth:
        searchFieldBorderWidth ?? this.searchFieldBorderWidth,
    searchFieldFocusedBorderWidth:
        searchFieldFocusedBorderWidth ?? this.searchFieldFocusedBorderWidth,
  );
}