getImgPath static method

String getImgPath(
  1. String? name, {
  2. String format = 'png',
})

Implementation

static String getImgPath(String? name, {String format = 'png'}) {
  return 'assets/images/$name.$format';
}