copyWith method

UserInfo copyWith({
  1. String? id,
  2. String? educationSystem,
  3. String? department,
  4. String? className,
  5. String? name,
  6. String? pictureUrl,
  7. String? email,
  8. Uint8List? pictureBytes,
})

Implementation

UserInfo copyWith({
  String? id,
  String? educationSystem,
  String? department,
  String? className,
  String? name,
  String? pictureUrl,
  String? email,
  Uint8List? pictureBytes,
}) {
  return UserInfo(
    id: id ?? this.id,
    educationSystem: educationSystem ?? this.educationSystem,
    department: department ?? this.department,
    className: className ?? this.className,
    name: name ?? this.name,
    pictureUrl: pictureUrl ?? this.pictureUrl,
    email: email ?? this.email,
    pictureBytes: pictureBytes ?? this.pictureBytes,
  );
}