ScreenFlowBackCallback typedef

ScreenFlowBackCallback = bool Function()

Called when the system back button (or gesture) arrives while the document has a screen to go back to. Return true when the host handled the event itself (the stack is then left alone); return false to let the flow go one screen back.

It is never called on the first screen of the document: there the event is taken by the host's route, and intercepting it is up to the host's own PopScope.

Implementation

typedef ScreenFlowBackCallback = bool Function();