role property

String? get role

Role of the Peer. @returns The Role of the Peer which if passed in the options when creating the token

Implementation

String? get role {
  if (_role == null) {
    return null;
  }

  return _role;
}
set role (String? role)

Implementation

set role(String? role) {
  _role = role;

  emit(
    'role-updated',
    role,
  );
}