CNButtonData constructor
const
CNButtonData({
- required String? label,
- CNIcon? icon,
- VoidCallback? onPressed,
- bool enabled = true,
- CNButtonTheme theme = const CNButtonTheme(),
- CNButtonDataConfig config = const CNButtonDataConfig(),
Creates a button data model with a label.
Implementation
const CNButtonData({
required this.label,
this.icon,
this.onPressed,
this.enabled = true,
this.theme = const CNButtonTheme(),
this.config = const CNButtonDataConfig(),
}) : isIcon = false;