pngImage function

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

Implementation

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