copyWith method
- VoidCallback? onPressed,
- IconData? icon,
- Color? customForegroundColor,
- Color? customBackgroundColor,
- ZetaColorSwatch? color,
- String? semanticLabel,
- bool? paleColor,
Creates a copy of this ZetaSlidableAction but with the given fields replaced with the new values.
Implementation
ZetaSlidableAction copyWith({
VoidCallback? onPressed,
IconData? icon,
Color? customForegroundColor,
Color? customBackgroundColor,
ZetaColorSwatch? color,
String? semanticLabel,
bool? paleColor,
}) {
return ZetaSlidableAction._(
key: key,
onPressed: onPressed ?? this.onPressed,
icon: icon ?? this.icon,
customForegroundColor: customForegroundColor ?? this.customForegroundColor,
customBackgroundColor: customBackgroundColor ?? this.customBackgroundColor,
color: color ?? this.color,
semanticLabel: semanticLabel ?? this.semanticLabel,
paleColor: paleColor ?? this.paleColor,
type: _type,
);
}