It works perfectly when I assign a static bool value to 'enableSideReveal' property. But if I try to assign the value dynamically i.e I wanted to hide the side reveal on reaching the last page.
I tried using streambuilder, setState and stateful builder as well to refresh the page on receiving callback from 'onPageChangeCallback'. But it didn't work, so either add a feature to allow us to hide the side reveal on reaching the last page or fix the setState issue.