'In flutter, which is more secure using platform functions/ dependency or dart dependency?

Im building a mobile application with flutter which the security is the highest priority so what is more secure to use native code (functions/ dependency ) or user the dart code/ dependency ?

In other words if I have function OR called x() in native kotlin/java or swift and I have the same thing in dart which of them is more secure to use and WHY?



Sources

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

Source: Stack Overflow

Solution Source