close method

void close([
  1. BuildContext? context
])

Implementation

void close([BuildContext? context]) {
  if (!_fullScreenMode) {
    galleryState.value = GalleryState.hide;
    panelController.closePanel();
    return;
  }
  if (context != null) {
    Navigator.of(context).pop();
  }
}