Last active
June 28, 2021 14:34
-
-
Save iranjunior/74072ee9a797e474a5288f83c766603f to your computer and use it in GitHub Desktop.
Criando chaves para melhor identificar um incidente.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class _MyHomePageState extends State<MyHomePage> { | |
| bool _isGuess = false; | |
| @override | |
| void initState() { | |
| super.initState(); | |
| // Seta se o usuário no momento já está logado | |
| FirebaseCrashlytics.instance.setCustomKey('guess', _isGuess); | |
| // Seta o id do usuário para melhoria na investigação | |
| FirebaseCrashlytics.instance.setUserIdentifier(widget.user['id']); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment