selectMedia method

void selectMedia(
  1. MediaFile file
)

Implementation

void selectMedia(MediaFile file) {
  if (!_selectedFiles.any((element) => element.id == file.id)) {
    _selectedFiles.add(file);
  }
  if (!_pickerMode) {
    _pickerMode = true;
  }
  update();
  updatePickerListener();
}