hasRole property

bool get hasRole

Returns true if role is not null, otherwise false.

Implementation

bool get hasRole => role != null;