getAllFileNamesByExtension function

Future<List<String>> getAllFileNamesByExtension(
  1. String extension
)

Fetches the names of all files with the specified extension.

extension: Extension without the dot (e.g., 'txt').

Example:

getAllFileNamesByExtension('example');

Implementation

Future<List<String>> getAllFileNamesByExtension(String extension) {
  return _getAllFileNamesByExtension(extension);
}