list method

Future<List<String>> list()

Implementation

Future<List<String>> list() async {
  final filenames = <String>[];
  final list = await HarnDBPlatform.instance.getFilesExtentions(ext);
  final data = list["files"];
  for (final item in data) {
    filenames.add(item);
  }
  return filenames;
}