invokeMethodSync<T> method

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

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);
}