WSvg constructor

const WSvg({
  1. Key? key,
  2. required String? src,
  3. String? className,
  4. Set<String>? states,
  5. String? semanticsLabel,
})

Creates a WSvg from an asset path.

Implementation

const WSvg({
  super.key,
  required this.src,
  this.className,
  this.states,
  this.semanticsLabel,
}) : svgString = null;