extension property Null safety

String? extension

File extension for this file.

Implementation

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