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