balances property

Map<String, Map<String, dynamic>> balances
getter/setter pair

User-specific WIC benefit balances by category.

Maps canonical category names (uppercase, normalized) to balance objects containing:

  • 'allowed': int? - Maximum items allowed (null = uncapped, e.g., CVB)
  • 'used': int - Number of items currently in basket

Example: { 'MILK': { 'allowed': 3, 'used': 1 } }

Implementation

Map<String, Map<String, dynamic>> balances = {};