RouterOutlet<TDelegate extends RouterDelegate<T> , T extends Object> constructor
RouterOutlet<TDelegate extends RouterDelegate<T> , T extends Object> ({})
Implementation
RouterOutlet({
Key? key,
TDelegate? delegate,
required Iterable<GetPage> Function(T currentNavStack) pickPages,
required Widget Function(
BuildContext context,
TDelegate,
Iterable<GetPage>? page,
) pageBuilder,
}) : this.builder(
builder: (context, rDelegate, currentConfig) {
var picked =
currentConfig == null ? null : pickPages(currentConfig);
if (picked?.isEmpty ?? false) {
picked = null;
}
return pageBuilder(context, rDelegate, picked);
},
delegate: delegate,
key: key,
);