CNButton.icon constructor
const
CNButton.icon({
- Key? key,
- required CNSymbol? icon,
- VoidCallback? onPressed,
- bool enabled = true,
- Color? tint,
- double size = 44.0,
- CNButtonStyle style = CNButtonStyle.glass,
Creates a round, icon-only variant of CNButton.
Implementation
const CNButton.icon({
super.key,
required this.icon,
this.onPressed,
this.enabled = true,
this.tint,
double size = 44.0,
this.style = CNButtonStyle.glass,
}) : label = null,
round = true,
width = size,
height = size,
shrinkWrap = false,
super();