CompositeAccessGate constructor

const CompositeAccessGate({
  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,
})

Default constructor: all conditions must return true.

Implementation

const CompositeAccessGate({
  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.all,
     atLeastCount = null;