closeCurrent static method
Implementation
static void closeCurrent(BuildContext context) {
final secondaryScope = _FuiSecondaryPaneScope.maybeOf(context);
if (secondaryScope?.isSecondaryPane ?? false) {
secondaryScope!.close();
return;
}
Navigator.of(context).maybePop();
}