perform method

Future perform(
  1. SEL selector, {
  2. List? args,
  3. DispatchQueue? onQueue,
})

Sends a specified message to the receiver asynchronously using onQueue. onQueue is DispatchQueue.main by default.

The message will consist of a selector and zero or more args.

Returns a Future which completes to the received response, which may be null or nil. Return value will be converted to Dart types.

Implementation

Future<dynamic> perform(SEL selector,
    {List? args, DispatchQueue? onQueue}) async {
  return msgSend(pointer, selector, args: args, onQueue: onQueue);
}