copyWith method

TRole copyWith({
  1. String? name,
  2. TMetaData? metaData,
  3. String? expertise,
  4. List<TInstruction>? instructions,
  5. List<TTool>? tools,
})

Implementation

TRole copyWith({
  String? name,
  TMetaData? metaData,
  String? expertise,
  List<TInstruction>? instructions,
  List<TTool>? tools,
}) => TRole(
  name: name ?? this.name,
  metaData: metaData ?? this.metaData,
  expertise: expertise ?? this.expertise,
  instructions: instructions ?? this.instructions,
  tools: tools ?? this.tools,
);