invokeMethod<T> method
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);
}