Skip to content

Instantly share code, notes, and snippets.

@threetwotwo
Created April 3, 2020 06:57
Show Gist options
  • Save threetwotwo/bb849136d7001398d3c20b03417afe3c to your computer and use it in GitHub Desktop.
Save threetwotwo/bb849136d7001398d3c20b03417afe3c to your computer and use it in GitHub Desktop.
Nutes repo example
static Future getRecentSearches() => shared._firestore.getRecentSearches();
static Future deleteRecentSearch(String uid) =>
shared._firestore.deleteRecentSearch(uid);
static Future createRecentSearch(User user) =>
shared._firestore.createRecentSearch(user);
static Future<List<User>> searchUsers(String text) =>
shared._firestore.searchUsers(text);
static Future<bool> usernameExists(String name) =>
shared._firestore.usernameExists(name);
static Future<User> getUser(String uid) => shared._firestore.getUser(uid);
static Future<void> logout() => shared._firestore.logout();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment