Skip to content

Instantly share code, notes, and snippets.

@ibtesam123
Created August 8, 2020 10:26
Show Gist options
  • Save ibtesam123/3d8dc82eeb3b6a57d4efeabbdc1798e5 to your computer and use it in GitHub Desktop.
Save ibtesam123/3d8dc82eeb3b6a57d4efeabbdc1798e5 to your computer and use it in GitHub Desktop.
Production-Ready app
//Crashlytics can be used for logging
Crashlytics.instance.log('This is for logging');
try {
throw 'Error Example';
} catch (e, s) {
// "context" will append the word "thrown" in the Crashlytics console.
Crashlytics.instance.recordError(e, s, context: 'as an example');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment