Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

children attribute of BookmarkTreeNode is always null #211

Open
Conchylicultor opened this issue Dec 19, 2014 · 0 comments
Open

children attribute of BookmarkTreeNode is always null #211

Conchylicultor opened this issue Dec 19, 2014 · 0 comments

Comments

@Conchylicultor
Copy link

Hi,
I don't know why but it seems that we cannot get the children directly from a BookmarkTreeNode.

import 'dart:async';
import 'package:chrome/chrome_ext.dart' as chrome;

void main() async {
  // Get the folder node
  chrome.BookmarkTreeNode folder = (await chrome.bookmarks.search("FolderName")).first;

  print(folder.children); // Children is null. Why ???

  // Get the children
  List<chrome.BookmarkTreeNode> childrenList = await chrome.bookmarks.getChildren(folder.id);

  print(childrenList); // Here is not
}

Console output:

    null
    [[object Object], [object Object], ... , [object Object]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant