CNButtonData constructor

const CNButtonData({
  1. required String? label,
  2. CNIcon? icon,
  3. VoidCallback? onPressed,
  4. bool enabled = true,
  5. CNButtonTheme theme = const CNButtonTheme(),
  6. CNButtonDataConfig config = const CNButtonDataConfig(),
})

Creates a button data model with a label.

Implementation

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