CNButton constructor

const CNButton({
  1. Key? key,
  2. required String? label,
  3. VoidCallback? onPressed,
  4. bool enabled = true,
  5. Color? tint,
  6. double height = 32.0,
  7. bool shrinkWrap = false,
  8. CNButtonStyle style = CNButtonStyle.plain,
})

Creates a text button variant of CNButton.

Implementation

const CNButton({
  super.key,
  required this.label,
  this.onPressed,
  this.enabled = true,
  this.tint,
  this.height = 32.0,
  this.shrinkWrap = false,
  this.style = CNButtonStyle.plain,
}) : icon = null,
     width = null,
     round = false;