merge method

SBBSliderStyle merge(
  1. SBBSliderStyle? other
)

Implementation

SBBSliderStyle merge(SBBSliderStyle? other) {
  if (this == null) return other ?? SBBSliderStyle();
  return this!.copyWith(
    activeTrackColor: this!.activeTrackColor ?? other?.activeTrackColor,
    inactiveTrackColor: this!.inactiveTrackColor ?? other?.inactiveTrackColor,
    thumbColor: this!.thumbColor ?? other?.thumbColor,
    thumbBorderColor: this!.thumbBorderColor ?? other?.thumbBorderColor,
    iconColor: this!.iconColor ?? other?.iconColor,
    disabledIconColor: this!.disabledIconColor ?? other?.disabledIconColor,
  );
}