closesBack static method

bool closesBack(
  1. BuildContext context
)

Whether the sheet page context stands in closes by the way back (back); the top bar reads it to derive its exit.

Implementation

static bool closesBack(BuildContext context) =>
    context.getInheritedWidgetOfExactType<_BackExit>() != null;