isSupportedAspect method

bool isSupportedAspect(
  1. InheritableAspect<T> aspect
)

Whether given aspect is supported by this. By default all non-null aspects are supported

Implementation

bool isSupportedAspect(InheritableAspect<T> aspect) =>
    aspect is InheritableAspect<T> &&
    // ignore: iterable_contains_unrelated_type
    (_overrides.contains(aspect) || aspect.satisfiedBy(this));