copyWith method

RCKInputButtonConfig copyWith({
  1. Widget? icon,
  2. Widget? activeIcon,
  3. double? size,
  4. double? spacing,
  5. Color? color,
  6. Color? activeColor,
  7. bool? visible,
})

Implementation

RCKInputButtonConfig copyWith({
  Widget? icon,
  Widget? activeIcon,
  double? size,
  double? spacing,
  Color? color,
  Color? activeColor,
  bool? visible,
}) {
  return RCKInputButtonConfig(
    icon: icon ?? this.icon,
    activeIcon: activeIcon ?? this.activeIcon,
    size: size ?? this.size,
    spacing: spacing ?? this.spacing,
    color: color ?? this.color,
    activeColor: activeColor ?? this.activeColor,
    visible: visible ?? this.visible,
  );
}