completeTask method
Implementation
void completeTask(BuildContext context) {
if (_fullScreenMode) {
Navigator.of(context).pop(value.selectedEntities);
} else {
galleryState.value = GalleryState.hide;
panelController.closePanel();
}
_onSubmitted?.call(value.selectedEntities);
_completer.complete(value.selectedEntities);
}