getPage method

  1. @visibleForTesting
Future<DBPage?> getPage(
  1. Destination destination
)

Gets a page from destination, returns null if any of DBPageBuilder does not support the destination.

Implementation

@visibleForTesting
Future<DBPage?> getPage(final Destination destination) async {
  for (final DBPageBuilder pageBuilder in this) {
    if (pageBuilder.supportRoute(destination)) {
      return pageBuilder.buildPage(destination);
    }
  }
  return null;
}