CNToolbarButton constructor

const CNToolbarButton({
  1. String? id,
  2. required String label,
  3. CNSymbol? icon,
  4. IconData? customIcon,
  5. CNImageAsset? imageAsset,
  6. String? tooltip,
  7. bool enabled = true,
  8. CNToolbarBadge? badge,
  9. CNToolbarItemStyle style = CNToolbarItemStyle.plain,
  10. Color? tint,
  11. bool isNavigational = false,
  12. bool centered = false,
  13. VoidCallback? onPressed,
})

Creates a toolbar button.

Implementation

const CNToolbarButton({
  super.id,
  required this.label,
  this.icon,
  this.customIcon,
  this.imageAsset,
  this.tooltip,
  this.enabled = true,
  this.badge,
  this.style = CNToolbarItemStyle.plain,
  this.tint,
  this.isNavigational = false,
  this.centered = false,
  this.onPressed,
});