copyWith method

ZaloProfileModel copyWith({
  1. String? birthday,
  2. String? gender,
  3. String? name,
  4. String? id,
  5. Picture? picture,
})

Implementation

ZaloProfileModel copyWith({
  String? birthday,
  String? gender,
  String? name,
  String? id,
  Picture? picture,
}) =>
    ZaloProfileModel(
      birthday: birthday ?? this.birthday,
      gender: gender ?? this.gender,
      name: name ?? this.name,
      id: id ?? this.id,
      picture: picture ?? this.picture,
    );