removeFile method

void removeFile(
  1. String path
)

Implementation

void removeFile(String path) {
  final updatedList = state.where((file) => file.path != path).toList();
  emit(updatedList);
}