ChromeBookmarks class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
maxSustainedWriteOperationsPerMinute int
no setter
maxWriteOperationsPerHour int
no setter
onChanged EventStream<OnChangedEvent>
Fired when a bookmark or folder changes. Note: Currently, only title and url changes trigger this.
no setter
onChildrenReordered EventStream<OnChildrenReorderedEvent>
Fired when the children of a folder have changed their order due to the order being sorted in the UI. This is not called as a result of a move().
no setter
onCreated EventStream<OnCreatedEvent>
Fired when a bookmark or folder is created.
no setter
onImportBegan EventStream<void>
Fired when a bookmark import session is begun. Expensive observers should ignore onCreated updates until onImportEnded is fired. Observers should still handle other notifications immediately.
no setter
onImportEnded EventStream<void>
Fired when a bookmark import session is ended.
no setter
onMoved EventStream<OnMovedEvent>
Fired when a bookmark or folder is moved to a different parent folder.
no setter
onRemoved EventStream<OnRemovedEvent>
Fired when a bookmark or folder is removed. When a folder is removed recursively, a single notification is fired for the folder, and none for its contents.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(CreateDetails bookmark) Future<BookmarkTreeNode>
Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.
get(Object idOrIdList) Future<List<BookmarkTreeNode>>
Retrieves the specified BookmarkTreeNode(s). idOrIdList A single string-valued id, or an array of string-valued ids
getChildren(String id) Future<List<BookmarkTreeNode>>
Retrieves the children of the specified BookmarkTreeNode id.
getRecent(int numberOfItems) Future<List<BookmarkTreeNode>>
Retrieves the recently added bookmarks. numberOfItems The maximum number of items to return.
getSubTree(String id) Future<List<BookmarkTreeNode>>
Retrieves part of the Bookmarks hierarchy, starting at the specified node. id The ID of the root of the subtree to retrieve.
getTree() Future<List<BookmarkTreeNode>>
Retrieves the entire Bookmarks hierarchy.
move(String id, MoveDestination destination) Future<BookmarkTreeNode>
Moves the specified BookmarkTreeNode to the provided location.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String id) Future<void>
Removes a bookmark or an empty bookmark folder.
removeTree(String id) Future<void>
Recursively removes a bookmark folder.
Searches for BookmarkTreeNodes matching the given query. Queries specified with an object produce BookmarkTreeNodes matching all specified properties. query Either a string of words and quoted phrases that are matched against bookmark URLs and titles, or an object. If an object, the properties query, url, and title may be specified and bookmarks matching all specified properties will be produced.
toString() String
A string representation of this object.
inherited
update(String id, UpdateChanges changes) Future<BookmarkTreeNode>
Updates the properties of a bookmark or folder. Specify only the properties that you want to change; unspecified properties will be left unchanged. Note: Currently, only 'title' and 'url' are supported.

Operators

operator ==(Object other) bool
The equality operator.
inherited