getFileName function

String getFileName(
  1. dynamic file
)

Get file name from path (mobile only)

Implementation

String getFileName(dynamic file) {
  if (kIsWeb) throw StateError('Not supported on web');
  return file_helper.getFileName(file);
}