copyWith method

Profile copyWith({
  1. String? name,
  2. String? about,
  3. String? website,
  4. String? location,
  5. String? coverImage,
  6. String? profileImage,
})

Implementation

Profile copyWith({
  String? name,
  String? about,
  String? website,
  String? location,
  String? coverImage,
  String? profileImage,
}) =>
    Profile(
      name: name ?? this.name,
      about: about ?? this.about,
      website: website ?? this.website,
      location: location ?? this.location,
      coverImage: coverImage ?? this.coverImage,
      profileImage: profileImage ?? this.profileImage,
    );