gates/composite_access_gate library
Classes
- CompositeAccessGate
- A flexible access gate that evaluates a list of conditions and displays widgets based on the evaluation strategy defined by variant.
Enums
- CompositeVariant
- Determines how multiple access conditions are evaluated.
Typedefs
-
AccessCondition
= FutureOr<
bool> Function(BuildContext) - A function that returns whether access is granted based on the given BuildContext.
- AccessGateBuilder = Widget Function(BuildContext context, bool allowed)
- A builder function that renders a widget based on the access result.