void loadProfile(String defName)

Source

void loadProfile(String defName) {
  _ready = true;
  String defPath = defName;
  if (!defPath.startsWith('/')) {
    Object base = node.configs[r'$base'];
    if (base is String) {
      defPath = '$base/defs/profile/$defPath';
    } else {
      defPath = '/defs/profile/$defPath';
    }
  }
  if (node.profile is RemoteNode &&
      (node.profile as RemoteNode).remotePath == defPath) {
    return;
  }
  node.profile = requester.nodeCache.getDefNode(defPath, defName);
  if (defName == 'node') {
    return;
  }
  if ((node.profile is RemoteNode) && !(node.profile as RemoteNode).listed) {
    _ready = false;
    _profileLoader =
    new ListDefListener(node.profile, requester, _onProfileUpdate);
  }
}