Skip to content

Instantly share code, notes, and snippets.

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