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