completeTask method

void completeTask(
  1. BuildContext context
)

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