getImagePath function

dynamic getImagePath(
  1. String name,
  2. {String format = 'png'}
)

Implementation

getImagePath(String name, {String format: 'png'}){
  return 'assets/images/$name.$format';
}