CNSymbol constructor

const CNSymbol(
  1. String name, {
  2. double size = 24.0,
  3. Color? color,
  4. List<Color>? paletteColors,
  5. CNSymbolRenderingMode? mode,
  6. bool? gradient,
})

Creates a symbol description for native rendering.

Example:

CNSymbol(
  'star.fill',
  size: 24,
  color: CupertinoColors.systemYellow,
  mode: CNSymbolRenderingMode.monochrome,
)

Implementation

const CNSymbol(
  this.name, {
  this.size = 24.0,
  this.color,
  this.paletteColors,
  this.mode,
  this.gradient,
});