I have an app that seems to throw a NullPointerException on very rare occasions. We have not been able to reproduce this in any development environment.
Is there an internal log file or other way to read the error message when it occurs? For example, if a normal user who installed the app from the PlayStore/App Store gets the problem - is there a file or something the user could send us?
Or what is the best practice with Flutter to handle such errors?