CNButtonData.icon constructor

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

Creates an icon-only button data model.

Implementation

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