CNToolbarButton constructor
const
CNToolbarButton({
- String? id,
- required String label,
- CNSymbol? icon,
- IconData? customIcon,
- CNImageAsset? imageAsset,
- String? tooltip,
- bool enabled = true,
- CNToolbarBadge? badge,
- CNToolbarItemStyle style = CNToolbarItemStyle.plain,
- Color? tint,
- bool centered = false,
- 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,
});