BeamerDelegate constructor
BeamerDelegate({
- required LocationBuilder locationBuilder,
- String initialPath = '/',
- void routeListener()?,
- void buildListener()?,
- Listenable? updateListenable,
- @Deprecated('No longer used by this package, please remove any references to it. ' 'This feature was deprecated after v1.0.0.') bool preferUpdate = true,
- bool removeDuplicateHistory = true,
- BeamPage notFoundPage = BeamPage.notFound,
- BeamLocation<
RouteInformationSerializable> ? notFoundRedirect, - String? notFoundRedirectNamed,
- List<
BeamGuard> guards = const <BeamGuard>[], - TransitionDelegate transitionDelegate = const DefaultTransitionDelegate(),
- TransitionDelegate beamBackTransitionDelegate = const ReverseTransitionDelegate(),
- bool onPopPage(
- BuildContext context,
- Route route,
- dynamic result
- bool setBrowserTabTitle = true,
- bool initializeFromParent = true,
- bool updateFromParent = true,
- bool updateParent = true,
- Set<
String> clearBeamingHistoryOn = const <String>{},
Creates a BeamerDelegate with specified properties.
locationBuilder is required to process the incoming navigation request.
Implementation
BeamerDelegate({
required this.locationBuilder,
this.initialPath = '/',
this.routeListener,
this.buildListener,
this.updateListenable,
@Deprecated(
'No longer used by this package, please remove any references to it. '
'This feature was deprecated after v1.0.0.',
)
this.preferUpdate = true,
this.removeDuplicateHistory = true,
this.notFoundPage = BeamPage.notFound,
this.notFoundRedirect,
this.notFoundRedirectNamed,
this.guards = const <BeamGuard>[],
this.navigatorObservers = const <NavigatorObserver>[],
this.transitionDelegate = const DefaultTransitionDelegate(),
this.beamBackTransitionDelegate = const ReverseTransitionDelegate(),
this.onPopPage,
this.setBrowserTabTitle = true,
this.initializeFromParent = true,
this.updateFromParent = true,
this.updateParent = true,
this.clearBeamingHistoryOn = const <String>{},
}) {
_currentBeamParameters = BeamParameters(
transitionDelegate: transitionDelegate,
);
configuration = RouteInformation(uri: Uri.parse(initialPath));
updateListenable?.addListener(_update);
}