I'm simply trying to remove an OverlayEntry
that I inserted into an Overlay
earlier:
rootOverlay.insert(entry);
I can't seem to find a method that does that though.
I did find a private method _remove
in the OverlayState
class, but I can not access that.
Am I missing something? How would you do that in Flutter?
The remove method is not inside OverlayState
but the OverlayEntry
itself
entry.remove()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With