pageBuilder property

StandardPageInterface<R, E> Function(Widget child, String? name, R pageData, LocalKey pageKey, String restorationId, GlobalKey<StandardPageWithResult<R, E>> standardPageKey, StandardPageWithResultFactory<StandardPageWithResult<R, E>, R, E> factoryObject)? pageBuilder
final

A function for creating StandardPageInterface.

The pageBuilder function takes the following parameters child : The child widget to be included in the StandardPageWithResult. name : The name of the page (can be null). pageData : The data associated with the page. pageKey : A LocalKey to identify the page. restorationId : A unique ID for state restoration. standardPageKey : A GlobalKey for the StandardPageWithResult widget. factoryObject : An instance of StandardPageWithResultFactory.

Implementation

final StandardPageInterface<R, E> Function(
  Widget child,
  String? name,
  R pageData,
  LocalKey pageKey,
  String restorationId,
  GlobalKey<StandardPageWithResult<R, E>> standardPageKey,
  StandardPageWithResultFactory<StandardPageWithResult<R, E>, R, E>
      factoryObject,
)? pageBuilder;