getName method
Implementation
String getName({bool withExt = true}) {
var name = path.split('/').last;
if (withExt) {
return name;
}
//replace . ပါလာရင်
String ext = name.split('.').last;
final noExt = name.replaceAll('.$ext', '');
// name = '${noExt.replaceAll('.', ' ')}.$ext';
return noExt;
}