Service Layer low complexity Shared Component shared
0
Dependencies
2
Dependents
0
Entities
0
Integrations

Description

Shared constants file defining all valid feature flag keys used by both the backend API and Flutter mobile client. Acts as the single source of truth to prevent key drift between frontend and backend. Consumed at build time.

Feature: Feature Toggles

feature-flag-constants

Responsibilities

  • Define canonical string keys for every toggleable platform feature
  • Export constants for use in Flutter Dart code and Next.js TypeScript code
  • Serve as validation allowlist in Feature Flag Service

Interfaces

FEATURE_FLAGS: Record<string, string>
ALL_FLAG_KEYS: string[]
isValidFlagKey(key): boolean

Relationships

Dependents (2)

Components that depend on this component