getName method

String getName({
  1. bool withExt = true,
})

Implementation

String getName({bool withExt = true}) {
  final name = path.split('/').last;
  if (!withExt) {
    return name.split('.').first;
  }
  return name;
}