ZetaSlidableAction constructor
- Key? key,
- VoidCallback? onPressed,
- required IconData icon,
- ZetaColorSwatch? color,
- Color? customForegroundColor,
- Color? customBackgroundColor,
- String? semanticLabel,
- bool paleColor = false,
Constructs a ZetaSlidableAction.
Implementation
const ZetaSlidableAction({
super.key,
this.onPressed,
required this.icon,
this.color,
this.customForegroundColor,
this.customBackgroundColor,
this.semanticLabel,
this.paleColor = false,
}) : _type = _ZetaSlidableActionType.custom,
assert(
(customForegroundColor == null && customBackgroundColor == null) ||
(customForegroundColor != null && customBackgroundColor != null),
'Ensure both customForegroundColor and customBackgroundColor are either both null or both not null.',
);