copyWith method

Group copyWith({
  1. GroupType? type,
  2. String? name,
  3. String? id,
  4. GenericLinks? links,
})

Implementation

Group copyWith(
    {GroupType? type, String? name, String? id, GenericLinks? links}) {
  return Group(
    type: type ?? this.type,
    name: name ?? this.name,
    id: id ?? this.id,
    links: links ?? this.links,
  );
}