isValid property

bool get isValid

Checks if the token is valid (not expired).

This is a convenience getter that returns the opposite of isExpired.

Returns true if the token is still valid, false if expired.

Implementation

bool get isValid => !isExpired;