fileName static method

String fileName(
  1. String path
)

Returns the file name portion of the specified path.

Implementation

static String fileName(String path) => p.basename(path);