hasRole property
bool
get
hasRole
Returns true if role
is not null, otherwise false.
Implementation
bool get hasRole => role != null;
Returns true if role
is not null, otherwise false.
bool get hasRole => role != null;