copyWith method

Role copyWith({
  1. String? name,
  2. TMetaData? metaData,
  3. String? expertise,
  4. List<Instruction>? instructions,
  5. List<Tool>? tools,
})

Implementation

Role copyWith({
  String? name,
  TMetaData? metaData,
  String? expertise,
  List<Instruction>? instructions,
  List<Tool>? tools,
}) => Role(
  name: name ?? this.name,
  metaData: metaData ?? this.metaData,
  expertise: expertise ?? this.expertise,
  instructions: instructions ?? this.instructions,
  tools: tools ?? this.tools,
);