msgSendSync<T> function
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);
}