requiredIf function

ContextValidator requiredIf (
  1. Iterable<String> keys
)

Assert that a key x is present, if all of the given keys are as well.

Implementation

ContextValidator requiredIf(Iterable<String> keys) =>
    _require((ctx) => keys.every(ctx.containsKey));