FeatureLevelItemConfiguration class
Configuration for one navigation level item (level2/level3/level4).
providers only apply within this level's subtree. To keep a level's
BLoC state alive while it's hidden by adaptation rules, use
PersistentBlocProvider in providers instead of BlocProvider(create: ...).
Constructors
-
FeatureLevelItemConfiguration({required String path, required String name, required WidgetBuilder builder, required WidgetBuilder placeholderBuilder, String? parentName, List<
SingleChildWidget> providers = const <SingleChildWidget>[]})
Properties
- builder → WidgetBuilder
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Route name, unique across the whole router — used for
context.goNamedand for resolving the active level from the current path.final - parentName → String?
-
Parent level's name, linking levels into a tree (e.g. level3 -> level2).
final
- path → String
-
Path segment relative to
FeatureNavigationConfiguration.defaultLevel2Path(e.g.'','call','participants',':chatId').final - placeholderBuilder → WidgetBuilder
-
Built when this level is replaced by a placeholder per adaptation rules.
final
-
providers
→ List<
SingleChildWidget> -
Providers available only within this level's subtree.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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