appliesTo method

bool appliesTo(
  1. String target
)

Whether this shared hook applies to target.

Implementation

bool appliesTo(String target) =>
    all || (hookTargets?.contains(target) ?? false);