loadProfile method
void
loadProfile(
- String defName
)
Implementation
void loadProfile(String defName) {
_ready = true;
var defPath = defName;
if (!defPath.startsWith('/')) {
dynamic 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 = ListDefListener(
node.profile as RemoteNode,
requester,
_onProfileUpdate,
);
}
}