extension method
Extracts the extension (without the leading dot) of self.file_name, if possible.
Implementation
String extension() => Env.isWindows
? WindowsPath(_string).extension()
: UnixPath(_string).extension();
Extracts the extension (without the leading dot) of self.file_name, if possible.
String extension() => Env.isWindows
? WindowsPath(_string).extension()
: UnixPath(_string).extension();