empty constant

UserModel const empty

A sentinel value representing the absence of a real user.

Used during startup fallback and auth-state transitions. Check with isEmpty rather than comparing directly to this constant.

Implementation

static const UserModel empty = UserModel(id: -1, firstName: "Unknown", lastName: "Unknown", email: "Unknown", isNotificationsEnabled: false);