extension method

String extension()

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

Implementation

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