copyWith method

ProfileModel copyWith({
  1. String? email,
  2. String? username,
})

Implementation

ProfileModel copyWith({
  String? email,
  String? username,
}) {
  return ProfileModel(
    email: email ?? this.email,
    username: username ?? this.username,
  );
}