msgSendSync<T> function

T msgSendSync<T>(
  1. Pointer<Void> target,
  2. SEL selector, {
  3. List? args,
  4. bool decodeRetVal = true,
})

Send a message synchronously to target, which should be an instance in iOS and macOS.

The message will consist of a selector and zero or more args. Return value will be converted to Dart types when decodeRetVal is true.

Implementation

T msgSendSync<T>(Pointer<Void> target, SEL selector,
    {List? args, bool decodeRetVal = true}) {
  return _msgSend<T>(target, selector, args: args, decodeRetVal: decodeRetVal);
}