fileName method

String fileName(
  1. String? file
)

File name.

Implementation

String fileName(String? file) {
  if (file == null || file.isEmpty) {
    return '';
  }
  return file.trim().split('/').last;
}