onSelectionChange method
Called when the user changes the selection in the dialog's view.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifiledialogevents-onselectionchange.
Implementation
@pragma('vm:prefer-inline')
void onSelectionChange(IFileDialog? pfd) {
final hr$ = HRESULT(_OnSelectionChangeFn(ptr, pfd?.ptr ?? nullptr));
if (hr$.isError) throw WindowsException(hr$);
}