CNIconView constructor

const CNIconView({
  1. Key? key,
  2. CNSymbol? symbol,
  3. CNIcon? imageAsset,
  4. IconData? customIcon,
  5. double? size,
  6. Color? color,
  7. CNSymbolRenderingMode? mode,
  8. bool? gradient,
  9. double? height,
})

Creates a platform-rendered SF Symbol icon.

Implementation

const CNIconView({
  super.key,
  this.symbol,
  this.imageAsset,
  this.customIcon,
  this.size,
  this.color,
  this.mode,
  this.gradient,
  this.height,
}) : assert(
       symbol != null || imageAsset != null || customIcon != null,
       'At least one of symbol, imageAsset, or customIcon must be provided',
     );