onPlatformViewCreated method Null safety

dynamic onPlatformViewCreated(
  1. int id
)

Implementation

onPlatformViewCreated(int id) {
  controller.init(id,
      showRectView: showRectView,
      similarity: similarity,
      livingDetect: livingDetect,
      maxDetectNum: maxDetectNum,
      callback: onCreated);
  controller.isCreate = true;
}