CompositeAccessGate.any constructor

const CompositeAccessGate.any({
  1. required List<AccessCondition> conditions,
  2. required Widget child,
  3. Widget? fallback,
  4. Widget? loading,
  5. bool debug = false,
  6. void onAllow()?,
  7. void onDeny()?,
  8. void onError(
    1. Object error
    )?,
  9. Key? key,
})

Requires at least one condition to return true.

Implementation

const CompositeAccessGate.any({
  required this.conditions,
  required Widget this.child,
  this.fallback,
  this.loading,
  this.debug = false,
  this.onAllow,
  this.onDeny,
  this.onError,
  super.key,
}) : builder = null,
     variant = CompositeVariant.any,
     atLeastCount = null;