User constructor

const User({
  1. required Session session,
  2. required String id,
  3. required String name,
  4. List<String>? email,
  5. List<String>? phone,
  6. String? availabilityText,
  7. String? locale,
  8. String? photoUrl,
  9. String? role,
  10. Map<String, String?>? custom,
  11. String? welcomeMessage,
})

Implementation

const User({
  required Session session,
  required String id,
  required String name,
  List<String>? email,
  List<String>? phone,
  String? availabilityText,
  String? locale,
  String? photoUrl,
  String? role,
  Map<String, String?>? custom,
  String? welcomeMessage,
})  : _session = session,
      _idOnly = false,
      super(
        id: id,
        name: name,
        email: email,
        phone: phone,
        availabilityText: availabilityText,
        locale: locale,
        photoUrl: photoUrl,
        role: role,
        custom: custom,
        welcomeMessage: welcomeMessage,
      );