ListOfPageBuilderExtension extension

Convenient extension to manipulate a collection of DBPageBuilder

on

Methods

buildStack(List<Destination> destinations) Future<List<DBPage>>
Builds navigation stack of pages from list of Destination
createPages(List<Destination> history) Future<List<DBPage>>
The method creates a list of db pages based on a list of destinations. Note the resulting list of pages only contains the pages with destination supported by the list of page builders.
filterHistory(List<Destination> destinations) List<Destination>
Filters the list of destinations to only contain the destination supported by the collection of page builders.
getPage(Destination destination) Future<DBPage?>
Gets a page from destination, returns null if any of DBPageBuilder does not support the destination.