isAuthenticated property

bool get isAuthenticated

Returns true if the user is logged in; that is, has a valid token.

Implementation

bool get isAuthenticated => (token != null);