updateUserData method

Future updateUserData (
  1. String email,
  2. String userType,
  3. {String rin: "0",
  4. String name}
)

Implementation

Future updateUserData(String email, String userType,
    {String rin = "0", String name}) async {
  //Updates the user data for the user corresponding to the usid
  return await _userCollection.document(usid).setData({
    'email': name,
    'userType': userType,
    'rin': rin,
    'name': name,
  });
}