canPop property

bool canPop

Whether this route can be popped.

When this changes, the route will rebuild, and any widgets that used ModalRoute.of will be notified.

Implementation

bool get canPop => !isFirst || willHandlePopInternally;