NovuActionOption constructor
NovuActionOption({
- dynamic icon,
- dynamic onPress()?,
- String? text,
- Color? color,
- dynamic result,
- String? key,
- List<
NovuActionOption> ? children, - String? badge,
- IconPosition iconPosition = IconPosition.left,
Implementation
NovuActionOption(
{this.icon, this.onPress, this.text, this.color, this.result, this.key, this.children, this.badge, this.iconPosition = IconPosition.left}) {
assert(icon != null || text != null, 'You must set text or icon or both');
}