completeTaskSingleSelection method

void completeTaskSingleSelection(
  1. BuildContext context,
  2. List<MediaEntity> selectedEntities
)

Implementation

void completeTaskSingleSelection(
    BuildContext context, List<MediaEntity> selectedEntities) {
  if (_fullScreenMode) {
    Navigator.of(context).pop(selectedEntities);
  } else {
    galleryState.value = GalleryState.hide;
    panelController.closePanel();
  }
  _onSubmitted?.call(selectedEntities);
  _completer.complete(selectedEntities);
}