isOpen property

bool isOpen
getter/setter pair

When the overlay is shown, isOpen is true We can technically only rely on overlayEntry to determine if the overlay is shown; however, we want to show the animation of fan slices disappearing, thus the removal of overlayEntry is a future. Thus to prevent user from double tapping another color before the overlay disappears, we have to check isOpen.

Implementation

bool isOpen = false;