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