completeTaskSingleSelection method
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);
}