copyWith method

Participant copyWith({
  1. String? id,
  2. String? name,
  3. Map<String, dynamic>? info,
})

Create a copy with the given fields replaced

Implementation

Participant copyWith({
  String? id,
  String? name,
  Map<String, dynamic>? info,
}) {
  return Participant(
    id: id ?? this.id,
    name: name ?? this.name,
    info: info ?? this.info,
  );
}