copyWith method

UserDetails copyWith({
  1. UserDetailsBusiness? business,
  2. UserDetailsPersonal? personal,
})

Implementation

UserDetails copyWith(
    {UserDetailsBusiness? business, UserDetailsPersonal? personal}) {
  return UserDetails(
    business: business ?? this.business,
    personal: personal ?? this.personal,
  );
}