NavigationActionCallback typedef

NavigationActionCallback = Future<bool?> Function()

A callback function for a navigation item action.

It can return a Future<bool?>. If it returns true, the default page navigation will proceed after the action is complete. If it returns false or null, only the action will be performed.

Implementation

typedef NavigationActionCallback = Future<bool?> Function();