getPrincipal method
Returns the principal ID associated with this agent (by default). It only shows the principal of the default identity in the agent, which is the principal used when calls don't specify it.
Implementation
@override
Future<Principal> getPrincipal() async {
return _identity!.getPrincipal();
}