CNButton constructor
const
CNButton({
- Key? key,
- required String? label,
- CNIcon? icon,
- VoidCallback? onPressed,
- bool enabled = true,
- Color? tint,
- CNButtonTheme theme = const CNButtonTheme(),
- CNButtonConfig config = const CNButtonConfig(),
Creates a text button variant of CNButton.
Can optionally include an icon to create a button with both text and icon.
Implementation
const CNButton({
super.key,
required this.label,
this.icon,
this.onPressed,
this.enabled = true,
this.tint,
this.theme = const CNButtonTheme(),
this.config = const CNButtonConfig(),
}) : super();