close method
Closes the dialog. userInput
is passed on to
closeCallback if a non-null callback is defined.
Implementation
void close(UserInput userInput) {
isopen = false;
// closeReturnValue = userInput.buttonCode;
dia.remove();
if (isModal) diaContainer.remove();
if (closeCallback != null) closeCallback(userInput);
}