copyWith method
SfDataPagerThemeData
copyWith({
- Brightness? brightness,
- Color? backgroundColor,
- Color? itemColor,
- TextStyle? itemTextStyle,
- Color? selectedItemColor,
- TextStyle? selectedItemTextStyle,
- Color? disabledItemColor,
- TextStyle? disabledItemTextStyle,
- Color? itemBorderColor,
- double? itemBorderWidth,
- BorderRadiusGeometry? itemBorderRadius,
- Color? dropdownButtonBorderColor,
Creates a copy of this theme but with the given fields replaced with the new values.
Implementation
SfDataPagerThemeData copyWith(
{Brightness? brightness,
Color? backgroundColor,
Color? itemColor,
TextStyle? itemTextStyle,
Color? selectedItemColor,
TextStyle? selectedItemTextStyle,
Color? disabledItemColor,
TextStyle? disabledItemTextStyle,
Color? itemBorderColor,
double? itemBorderWidth,
BorderRadiusGeometry? itemBorderRadius,
Color? dropdownButtonBorderColor}) {
return SfDataPagerThemeData.raw(
brightness: brightness ?? this.brightness,
backgroundColor: backgroundColor ?? this.backgroundColor,
itemColor: itemColor ?? this.itemColor,
itemTextStyle: itemTextStyle ?? this.itemTextStyle,
selectedItemColor: selectedItemColor ?? this.selectedItemColor,
selectedItemTextStyle:
selectedItemTextStyle ?? this.selectedItemTextStyle,
disabledItemColor: disabledItemColor ?? this.disabledItemColor,
disabledItemTextStyle:
disabledItemTextStyle ?? this.disabledItemTextStyle,
itemBorderColor: itemBorderColor ?? this.itemBorderColor,
itemBorderWidth: itemBorderWidth ?? this.itemBorderWidth,
itemBorderRadius: itemBorderRadius ?? this.itemBorderRadius,
dropdownButtonBorderColor:
dropdownButtonBorderColor ?? this.dropdownButtonBorderColor);
}