invokeMethod<T> method

Future<T> invokeMethod<T>(
  1. String method, {
  2. List? args,
})

Invoke a native method asynchronously.

Types of support: num/String/List/Map/Set/Function/Pointer/NativeByte/NativeObject

Implementation

Future<T> invokeMethod<T>(String method, {List? args}) {
  return _runtime.invokeMethod(_nativeObjectPointer, _nativeMethod(method),
      args: args);
}