extension property

String? get extension

File extension for this file.

Implementation

String? get extension => name.split('.').last;