NovuActionOption constructor

NovuActionOption({
  1. dynamic icon,
  2. dynamic onPress()?,
  3. String? text,
  4. Color? color,
  5. dynamic result,
  6. String? key,
  7. List<NovuActionOption>? children,
  8. String? badge,
  9. 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');
}