'How to access Infrared Camera of Smartphone using Dart and Flutter?

I have a Xaiomi POCO F1 which has integrated infrared face camera sensors. I was wondering how to access them using Dart and flutter framework. There are no APIs available for the same on pub.dev.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source