Here is my pubspec.yaml:
assets:
- assets/mySecertImage.png
Here is how I read back the assets:
var data = await Pl
You can not get the file path of an asset file, because assets, that are bundled with your app, are stored inside an archive.
See the "Asset building" section here:
https://flutter.dev/docs/development/ui/assets-and-images#asset-bundling
During a build, Flutter places assets into a special archive called the asset bundle that apps read from at runtime.