PapilioRouterDelegateBuilder<T> class

A builder that can be used to create a PapilioRouterDelegate


PapilioRouterDelegateBuilder(T getCurrentConfiguration(Page currentPage))
Constructs a new PapilioRouterDelegateBuilder


getCurrentConfiguration → T Function(Page currentPage)
Give a page, return the configuration
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


addPage<TBloc>({required IocContainer container, required String name, required TBloc initialState(Object? arguments), required Widget pageBody(BuildContext context), required void buildBloc(BlocBuilder<TBloc> blocBuilder, IocContainer container), bool onPopPage(Route route, dynamic result, PageArgs pageArgs)?, BlocEvent? initialEvent}) → void
Add a page for routing. initialEvent allows you to send an event to the Bloc when the page first loads. Use onPop to cancel pops or clean up the pageScope. Use the blocBuilder to add async and sync bloc handlers to deal with UI changes
build(Future<void> setNewRoutePath(PapilioRouterDelegate<T> delegate, T configuration)) PapilioRouterDelegate<T>
Build the PapilioRouterDelegate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.