User constructor

const User({
  1. required LoginMethod loginMethod,
  2. required String id,
  3. String? name,
  4. String? email,
  5. String? phoneNumber,
  6. String? photoUrl,
})

Create a new user with the given parameters.

Implementation

const User({
  required this.loginMethod,
  required this.id,
  this.name,
  this.email,
  this.phoneNumber,
  this.photoUrl,
});