init static method

void init(
  1. int windowId
)

Implementation

static void init(int windowId) {
  methodChannel.setMethodCallHandler(handleMethodCall);
  methodChannel.invokeMethod("setWindowId", {"windowId": windowId.toString()});
}