copyWith method

  1. @override
DrivenSpinnerThemeData copyWith({
  1. double? size,
  2. Color? color,
  3. Color? backgroundColor,
  4. double? width,
  5. double? offset,
  6. bool? rounded,
})
override

Creates a copy of this DrivenSpinnerThemeData but with the given fields replaced with the new values.

Implementation

@override
DrivenSpinnerThemeData copyWith({
  double? size,
  Color? color,
  Color? backgroundColor,
  double? width,
  double? offset,
  bool? rounded,
}) {
  return DrivenSpinnerThemeData(
    size: size ?? this.size,
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    width: width ?? this.width,
    offset: offset ?? this.offset,
    rounded: rounded ?? this.rounded,
  );
}