svgImage function

String svgImage(
  1. String name, {
  2. String? path,
})

Implementation

String svgImage(String name, {String? path}) {
  final resource = '$name${FileExtensions.SVG}';
  if (path != null && path.isNotEmpty) {
    return path + resource;
  }
  return resource;
}