CNButtonData constructor
const
CNButtonData({
- required String? label,
- CNSymbol? icon,
- IconData? customIcon,
- CNImageAsset? imageAsset,
- VoidCallback? onPressed,
- bool enabled = true,
- Color? tint,
- CNButtonDataConfig config = const CNButtonDataConfig(),
Creates a button data model with a label.
Implementation
const CNButtonData({
required this.label,
this.icon,
this.customIcon,
this.imageAsset,
this.onPressed,
this.enabled = true,
this.tint,
this.config = const CNButtonDataConfig(),
}) : isIcon = false;