You can integrate firebase_crashlytics, when you have any error or exception firebase crashlytic will look like this: image
Now you can see exactly what line in your code caused the errors.