fileName property

String get fileName

Name used for the file.

Implementation

String get fileName => name ?? path?.split(RegExp(r"[/\\]")).last ?? "file";