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