getFileNameFromText method

String? getFileNameFromText(
  1. String text
)

This function is used for get file name with extension from text ***************

Implementation

String? getFileNameFromText(String text) {
  return text.split('/').last;
}