I have a flutter application with a folder certs/ inside the assets' folder like this: certs/ with a cert.pem file inside.
I already added the file to the pubspec.yaml:
assets:
- assets/images/
- assets/texts/
- assets/certs/cert.pem
but when I run
var certFile = File("cert.pem");
var certFile = File("certs/cert.pem");
var certFile = File("assets/certs/cert.pem");
var certFile = File("../../../assets/certs/cert.pem");
None of these options work. How to do I open the file?
Thank you