beforeUpdate method
Called when a page is about to be updated.
Returns either a Future<bool> or bool
. If true
is returned, the page
will update normally, otherwise, it will not proceed to calling build.
Implementation
FutureOr<bool?> beforeUpdate(BuildContext context) => true;