TodayButton constructor

const TodayButton({
  1. Key? key,
  2. String? label,
  3. Widget? badge,
  4. TodaySvgIcon? icon,
  5. Widget? customIcon,
  6. TodayButtonSize size = TodayButtonSize.regular,
  7. TodayButtonType type = TodayButtonType.primary,
  8. TodayButtonIconDirection iconDirection = TodayButtonIconDirection.left,
  9. bool disabled = false,
  10. bool flat = false,
  11. bool invisible = false,
  12. TodayColor? iconColor,
  13. Color? labelColor,
  14. int activeCount = 0,
  15. required Function onPressed,
})

Implementation

const TodayButton({
  super.key,
  this.label,
  this.badge,
  this.icon,
  this.customIcon,
  this.size = TodayButtonSize.regular,
  this.type = TodayButtonType.primary,
  this.iconDirection = TodayButtonIconDirection.left,
  this.disabled = false,
  this.flat = false,
  this.invisible = false,
  this.iconColor,
  this.labelColor,
  this.activeCount = 0,
  required this.onPressed,
});