isAgent property
bool
get
isAgent
Backwards compatible agent flag, if you still need it.
Implementation
bool get isAgent => role == 'agent';
Backwards compatible agent flag, if you still need it.
bool get isAgent => role == 'agent';