Service Layer medium complexity Shared Component mobile
3
Dependencies
2
Dependents
2
Entities
0
Integrations

Description

A Riverpod provider that exposes the resolved feature flag map for the currently active organization. Reads flags from the local cache or fetches from the repository and evaluates phase-based rollout conditions (app version, activation date) before surfacing boolean values to consumers.

Feature: Organization-scoped Feature Flags

feature-flag-provider

Responsibilities

  • Resolve the active organization and load its feature flag configuration
  • Evaluate phase-based rollout rules against current app version and date
  • Expose a typed flag map so any widget can call isEnabled(flagKey) in O(1)
  • Invalidate and refresh flags when the organization context changes

Interfaces

featureFlagProvider
isEnabled(String flagKey) → bool
getAllFlags() → Map<String, bool>
refresh()
watchFlag(String flagKey) → AsyncValue<bool>

Relationships

Dependencies (3)

Components this component depends on

Dependents (2)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component

API Contract

View full contract →
REST /api/v1/feature-flags 7 endpoints
GET /api/v1/feature-flags
GET /api/v1/feature-flags/:key
POST /api/v1/feature-flags
PUT /api/v1/feature-flags/:key
DELETE /api/v1/feature-flags/:key
POST /api/v1/feature-flags/load/:orgId
+1 more