showRecomendations method
void
showRecomendations()
Implementation
void showRecomendations() async {
gls.Node recomandations =
await api.storage.getNodeOrTombstone(':Global:Recommendations');
Map<String, gls.Node> childrenNodes = await recomandations.getChildren();
List<Node> children = childrenNodes.keys
.map((k) => Node(key: k, label: k, data: childrenNodes[k]!.path))
.toList();
Node recomandationNode = Node(
key: recomandations.name,
label: recomandations.path,
data: recomandations.path,
children: children);
nodes = [recomandationNode];
setState(() {
_controller = _controller.copyWith(children: nodes);
});
}