copyWith method Null safety

SfDataPagerThemeData copyWith(
  1. {Brightness? brightness,
  2. Color? backgroundColor,
  3. Color? itemColor,
  4. TextStyle? itemTextStyle,
  5. Color? selectedItemColor,
  6. TextStyle? selectedItemTextStyle,
  7. Color? disabledItemColor,
  8. TextStyle? disabledItemTextStyle,
  9. Color? itemBorderColor,
  10. double? itemBorderWidth,
  11. BorderRadiusGeometry? itemBorderRadius}
)

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}) {
  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);
}