close method
Closes the dialog.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifiledialog-close.
Implementation
@pragma('vm:prefer-inline')
void close(HRESULT hr) {
final hr$ = HRESULT(_CloseFn(ptr, hr));
if (hr$.isError) throw WindowsException(hr$);
}