attach method

dynamic attach(
  1. ScanbotCameraController controller
)

Implementation

attach(ScanbotCameraController controller) {
  try {
    channelName = "scanbot_sdk_camera.detector_${controller.viewId}";
    detectorChannel = MethodChannel(channelName);
    registerResultHandler();
  } catch (e) {
    Logger.root.severe(e);
  }
}