copyWith method

GroupDetails copyWith({
  1. String? groupId,
  2. String? name,
})

Implementation

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