copyWith method

UserRegistration copyWith({
  1. int? year,
  2. int? term,
  3. Value<String?> className = const Value.absent(),
  4. Value<EnrollmentStatus?> enrollmentStatus = const Value.absent(),
})

Implementation

UserRegistration copyWith({
  int? year,
  int? term,
  Value<String?> className = const Value.absent(),
  Value<EnrollmentStatus?> enrollmentStatus = const Value.absent(),
}) => UserRegistration(
  year: year ?? this.year,
  term: term ?? this.term,
  className: className.present ? className.value : this.className,
  enrollmentStatus: enrollmentStatus.present
      ? enrollmentStatus.value
      : this.enrollmentStatus,
);