If you want to use OpenCV in you C++ code (because, e.g., you need more heavy C++ manipulation instead of simply calling functions), then have a look at this answer: How to use OpenCV 4 in native C++ of Flutter? at July 2020.
Disclaimer: I wrote that answer.