///WebHistory class. /// ///This class contains a snapshot of the current back/forward list for a WebView. class WebHistory { List<WebHistoryItem> _list; ///List of all [WebHistoryItem]s. List<WebHistoryItem> get list => _list; ///Index of the current [WebHistoryItem]. int currentIndex; WebHistory(this._list, this.currentIndex); } ///WebHistoryItem class. /// ///A convenience class for accessing fields in an entry in the back/forward list of a WebView. Each WebHistoryItem is a snapshot of the requested history item. class WebHistoryItem { ///Original url of this history item. String originalUrl; ///Document title of this history item. String title; ///Url of this history item. String url; ///0-based position index in the back-forward [WebHistory.list]. int index; ///Position offset respect to the currentIndex of the back-forward [WebHistory.list]. int offset; WebHistoryItem(this.originalUrl, this.title, this.url, this.index, this.offset); }