loadFileAsSvg function

Widget loadFileAsSvg(
  1. String path, {
  2. double? height,
  3. double? width,
  4. BoxFit? fit,
  5. Color? color,
})

Implementation

Widget loadFileAsSvg(String path, {double? height, double? width, BoxFit? fit, Color? color}) {
  // Should not be reached if kIsWeb is checked correctly before calling a wrapper
  print("Error: loadFileAsSvg called on web for path: $path");
  return Placeholder(fallbackHeight: height ?? 24, fallbackWidth: width ?? 24);
}