extension method

String extension()

Extracts the extension (without the leading dot) of self.file_name, if possible.

Implementation

String extension() =>
    isWindows ? WindowsPath(_string).extension() : UnixPath(_string).extension();