beforeLoad method

FutureOr<bool?> beforeLoad(
  1. BuildContext context
)

Called when a page is about to be loaded.

buildLoading is called while waiting for the result of this function.

Returns either a Future<bool> or bool. If true is returned, the page will load normally, otherwise, it will not proceed to calling build.

Implementation

FutureOr<bool?> beforeLoad(BuildContext context) => true;