unselectMedia method

void unselectMedia(
  1. MediaFile file
)

Implementation

void unselectMedia(MediaFile file) {
  _selectedFiles.removeWhere((element) => element.id == file.id);
  if (_selectedFiles.isEmpty) {
    _pickerMode = false;
  }
  update();
  updatePickerListener();
}