shouldGuard method

bool shouldGuard(
  1. BeamLocation<BeamState> location
)

Whether or not the guard should check the location.

Implementation

bool shouldGuard(BeamLocation location) {
  return guardNonMatching ? !_hasMatch(location) : _hasMatch(location);
}