userId property

dynamic get userId

Returns the ID of the authenticated user (if available).

Implementation

dynamic get userId => user?['id'] ?? authenticatable?.getAuthIdentifier();