PapilioRouterDelegateBuilder<T> class

A builder that can be used to create a PapilioRouterDelegate

Constructors

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

Properties

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

Methods

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.
inherited
toString() String
A string representation of this object.
inherited

Operators

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