Callback when delete button is pressed, but don't delete the file, that's on you to so it and update files
final Function(int index)? onDelete;