hasNotRole property

bool get hasNotRole

Returns true if role is null, otherwise false.

Implementation

bool get hasNotRole => !hasRole;