copyWith method

Implementation

KnowledgeBaseLocator copyWith(
    {enums.KnowledgeBaseDocumentType? type,
    String? name,
    String? id,
    enums.DocumentUsageModeEnum? usageMode}) {
  return KnowledgeBaseLocator(
      type: type ?? this.type,
      name: name ?? this.name,
      id: id ?? this.id,
      usageMode: usageMode ?? this.usageMode);
}