getBaseName function

String getBaseName(
  1. String path
)

Returns the base name of a given file path.

Implementation

String getBaseName(String path) {
  final localSystemFilePath = toLocalSystemPathFormat(path);
  return p.basename(localSystemFilePath);
}