User constructor Null safety

User(
  1. {String? id,
  2. required String firstname,
  3. required String lastname,
  4. required String email,
  5. String password = ''}
)

Implementation

User({
  this.id,
  required this.firstname,
  required this.lastname,
  required this.email,
  this.password = '',
});