copyWith method

  1. @override
EntityResolutionRules copyWith({
  1. bool? allowEntityFetch,
  2. bool? allowReadFile,
  3. List<Type>? lazyEntityTypes,
  4. List<Type>? eagerEntityTypes,
  5. bool? allLazy,
  6. bool? allEager,
  7. bool? mergeTolerant,
  8. List<Type>? conflictingEntityTypes,
})
override

Copies this instance, allowing fields overwrite.

  • conflictingEntityTypes informs the Types to remove from lazyEntityTypes and eagerEntityTypes.

Implementation

@override
EntityResolutionRules copyWith(
        {bool? allowEntityFetch,
        bool? allowReadFile,
        List<Type>? lazyEntityTypes,
        List<Type>? eagerEntityTypes,
        bool? allLazy,
        bool? allEager,
        bool? mergeTolerant,
        List<Type>? conflictingEntityTypes}) =>
    resolved.copyWith(
        allowEntityFetch: allowEntityFetch,
        allowReadFile: allowReadFile,
        lazyEntityTypes: lazyEntityTypes,
        eagerEntityTypes: eagerEntityTypes,
        allLazy: allLazy,
        allEager: allEager,
        mergeTolerant: mergeTolerant,
        conflictingEntityTypes: conflictingEntityTypes);