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