merge method

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

Implementation

DrivenSpinnerThemeData merge(DrivenSpinnerThemeData? other) {
  // if null return current object
  if (other == null) return this;

  return copyWith(
    size: other.size,
    color: other.color,
    backgroundColor: other.backgroundColor,
    width: other.width,
    offset: other.offset,
    rounded: other.rounded,
  );
}