copyWith method
Implementation
GroupDetails copyWith({String? groupId, String? name}) {
return GroupDetails(
groupId: groupId ?? this.groupId,
name: name ?? this.name,
);
}
GroupDetails copyWith({String? groupId, String? name}) {
return GroupDetails(
groupId: groupId ?? this.groupId,
name: name ?? this.name,
);
}