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