copyWith method

  1. @override
MemberPublicInfoModel copyWith({
  1. String? documentID,
  2. String? name,
  3. String? photoURL,
  4. List<MemberSubscriptionModel>? subscriptions,
})
override

Implementation

@override
MemberPublicInfoModel copyWith({
  String? documentID,
  String? name,
  String? photoURL,
  List<MemberSubscriptionModel>? subscriptions,
}) {
  return MemberPublicInfoModel(
    documentID: documentID ?? this.documentID,
    name: name ?? this.name,
    photoURL: photoURL ?? this.photoURL,
    subscriptions: subscriptions ?? this.subscriptions,
  );
}