closeCurrent static method

void closeCurrent(
  1. BuildContext context
)

Implementation

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