CompositeAccessGate.atLeast constructor

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

Requires at least atLeastCount conditions to return true.

Implementation

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