WaitMessage function Null safety user32

int WaitMessage ()

Yields control to other threads when a thread has no other messages in its message queue. The WaitMessage function suspends the thread and does not return until a new message is placed in the thread's message queue.

BOOL WaitMessage();

Implementation

int WaitMessage() {
  final _WaitMessage =
      _user32.lookupFunction<Int32 Function(), int Function()>('WaitMessage');
  return _WaitMessage();
}