userId property

String userId
final

Unique identifier for the current user.

Required for:

  • Server-side security and data isolation
  • Multi-user conflict resolution
  • Tracking who made which changes
  • Outbox persistence per user

Important: Cannot be empty - will throw ArgumentError if empty.

Implementation

final String userId;