CNButton.icon constructor

const CNButton.icon({
  1. Key? key,
  2. required CNSymbol? icon,
  3. VoidCallback? onPressed,
  4. bool enabled = true,
  5. Color? tint,
  6. double size = 44.0,
  7. 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();