isInnocuous property

  1. @override
bool isInnocuous
override

Returns true if this instance is equivalent to innocuous instance (no resolution rules to apply).

Implementation

@override
bool get isInnocuous {
  var innocuous = _innocuous;
  if (innocuous != null) return innocuous;

  if (_allowEntityFetch != null ||
      allEager != null ||
      allLazy != null ||
      allowReadFile ||
      mergeTolerant) {
    return false;
  }

  final eagerEntityTypes = this.eagerEntityTypes;
  final lazyEntityTypes = this.lazyEntityTypes;

  return (eagerEntityTypes == null || eagerEntityTypes.isEmpty) &&
      (lazyEntityTypes == null || lazyEntityTypes.isEmpty);
}