ShowWindow function Null safety user32

int ShowWindow (
  1. int hWnd,
  2. int nCmdShow
)

Sets the specified window's show state.

BOOL ShowWindow(
  HWND hWnd,
  int  nCmdShow
);

Implementation

int ShowWindow(int hWnd, int nCmdShow) {
  final _ShowWindow = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Int32 nCmdShow),
      int Function(int hWnd, int nCmdShow)>('ShowWindow');
  return _ShowWindow(hWnd, nCmdShow);
}