I'm trying to use print method in native iOS code in Flutter project.
This is how I tried:
print("")
debugPrint("")
OSLog("")
But nothing printed anything to the console!
How can I do that?
If you want to interact with the underlying native platform you're going to need a Platform Channel. This will allow calling native methods from Dart in an async
way.
You can find everything you need complete with examples here !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.