extension property

String get extension

Implementation

String get extension =>
    path.contains('.') ? path.split('.').last.toLowerCase() : '';