CNImageAsset constructor

const CNImageAsset(
  1. String assetPath, {
  2. Uint8List? imageData,
  3. String? imageFormat,
  4. double size = 24.0,
  5. Color? color,
  6. CNSymbolRenderingMode? mode,
  7. bool? gradient,
})

Creates an image asset description for native rendering.

Implementation

const CNImageAsset(
  this.assetPath, {
  this.imageData,
  this.imageFormat,
  this.size = 24.0,
  this.color,
  this.mode,
  this.gradient,
});