fileName method

String fileName()

Returns the final component of the Path, if there is one.

Implementation

String fileName() => _posix.basename(path);