populateBookmarks method
Populate list of bookmarks included with the app by default.
Implementation
void populateBookmarks() {
if (populateBookmarksFlag) {
return;
}
List<BrowserBookmark> defaultBookmarks = [
BrowserBookmark(
name: 'jidoujisho', url: 'https://github.com/arianneorpilla/jidoujisho'),
BrowserBookmark(name: 'Google', url: 'https://google.com/'),
BrowserBookmark(name: 'DuckDuckGo', url: 'https://duckduckgo.com/'),
BrowserBookmark(name: 'Wikipedia', url: 'https://wikipedia.org/'),
BrowserBookmark(name: 'Wikipedia', url: 'https://wikipedia.org/'),
BrowserBookmark(name: 'Syosetu', url: 'https://syosetu.com/'),
BrowserBookmark(name: 'NHK News', url: 'https://www3.nhk.or.jp/news/'),
BrowserBookmark(name: 'BBC News', url: 'https://www.bbc.com/news'),
];
_database.writeTxnSync(() {
_database.browserBookmarks.putAllSync(defaultBookmarks);
});
setPopulateBookmarksFlag();
}