addUserInfo method

Future addUserInfo({
  1. String? name,
  2. String? email,
  3. String? phone,
})

Implementation

Future addUserInfo({String? name, String? email, String? phone}) async {
  if (email != null) {
    _onEach((provider) => provider.email = email).ignore();
  }
  if (name == null || name.toLowerCase() == "me") {
    name = email;
  }
  if (name != null) _onEach((provider) => provider.name = name).ignore();

  if (phone != null) {
    setUserProperty("Phone", "$phone");
  }
}