extension property

String get extension

The file extension of the asset (including the leading dot).

Implementation

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