invokeMethodSync<T> method
Invoke a native method synchronously.
Types of support: num/String/List/Map/Set/Function/Pointer/NativeByte/NativeObject
Implementation
T invokeMethodSync<T>(String method, {List? args}) {
return _runtime.invokeMethodSync(
_nativeObjectPointer, _nativeMethod(method),
args: args);
}