CNButtonData constructor

const CNButtonData({
  1. required String? label,
  2. CNSymbol? icon,
  3. IconData? customIcon,
  4. CNImageAsset? imageAsset,
  5. VoidCallback? onPressed,
  6. bool enabled = true,
  7. Color? tint,
  8. CNButtonDataConfig config = const CNButtonDataConfig(),
})

Creates a button data model with a label.

Implementation

const CNButtonData({
  required this.label,
  this.icon,
  this.customIcon,
  this.imageAsset,
  this.onPressed,
  this.enabled = true,
  this.tint,
  this.config = const CNButtonDataConfig(),
}) : isIcon = false;