extension property

String get extension

Gets the file extension (including dot).

Implementation

String get extension => path.extension(filename);