copyWith method

GroupCreate copyWith({
  1. GroupCreateType? type,
  2. String? name,
  3. String? id,
})

Implementation

GroupCreate copyWith({GroupCreateType? type, String? name, String? id}) {
  return GroupCreate(
    type: type ?? this.type,
    name: name ?? this.name,
    id: id ?? this.id,
  );
}