flutter_firestore_tut
//... | |
class _Home extends State<StatefulWidget> { | |
//... | |
void removeFromDb(itemID) { | |
Firestore.instance.collection('docs').document(itemID).delete(); | |
interact(); | |
} | |
//... | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
//... | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment