References
Error Codes
In Flutter, error codes align with the respective native SDKs:
- For Android: Flutter follows the error codes defined by the Android SDK.
- For iOS: Flutter follows the error codes defined by the iOS SDK.
This means that when handling errors in Flutter, you should refer to the platform-specific error codes based on whether the app is running on Android or iOS.
Sample code
To handle errors in flutter for Android and iOS, refer this