copyWith method

UserDetailsBusiness copyWith({
  1. String? position,
  2. String? department,
  3. String? location,
})

Implementation

UserDetailsBusiness copyWith(
    {String? position, String? department, String? location}) {
  return UserDetailsBusiness(
    position: position ?? this.position,
    department: department ?? this.department,
    location: location ?? this.location,
  );
}