Skip to content

Instantly share code, notes, and snippets.

@xinthink
Created March 5, 2020 09:30
Show Gist options
  • Save xinthink/4031a6c058ef49055aa0640852703664 to your computer and use it in GitHub Desktop.
Save xinthink/4031a6c058ef49055aa0640852703664 to your computer and use it in GitHub Desktop.
/// Callback before the user dismiss the editor
Future<dynamic> _onPop(String uid) => _isDirty
? saveToFireStore(uid, _note)
: Future.value();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment