closePanel method

void closePanel()

Implementation

void closePanel() {
  galleryState.value = GalleryState.hide;
  panelController.closePanel();
  final entities = (_clearedSelection || value.selectedEntities.isEmpty)
      ? <MediaEntity>[]
      : value.selectedEntities;
  _completer.complete(entities);

  internal = true;
  value = const GalleryValue();
}