isAgent property

bool get isAgent

Backwards compatible agent flag, if you still need it.

Implementation

bool get isAgent => role == 'agent';