I am trying to call the following hideOverlay function from a separate class
hideOverlay() {
overlayEntry?.remove();
overlayEntry = null;
if (overlayEntry != null) {
overlayEntry.remove();
overlayEntry = null;
}
}
In a separate class, I have imported the file containing the function and attempted to call the file by using.
hideOverlay();
I am a super newbie please advise what I am doing wrong :-(