loadSvg method

Future<Svg> loadSvg(
  1. String fileName, {
  2. String? package,
  3. bool fixedRatio = false,
  4. int cacheSize = Svg.defaultCacheSize,
})

Loads an Svg using the Game's own asset loader.

Implementation

Future<Svg> loadSvg(
  String fileName, {
  String? package,
  bool fixedRatio = false,
  int cacheSize = Svg.defaultCacheSize,
}) => Svg.load(
  fileName,
  cache: assets,
  package: package,
  fixedRatio: fixedRatio,
  cacheSize: cacheSize,
);