CNIcon constructor
const
CNIcon({
- Key? key,
- CNSymbol? symbol,
- CNImageAsset? imageAsset,
- IconData? customIcon,
- double? size,
- Color? color,
- CNSymbolRenderingMode? mode,
- bool? gradient,
- double? height,
Creates a platform-rendered SF Symbol icon.
Implementation
const CNIcon({
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',
);