BottomNavTemplateFeature class
This Feature provides a Template/Starting point for a Dart Board UI
Config is a map {'/route': {'title': 'Icon Title', 'color': Colors.blue, 'icon', Icons.ac_unit}}
It will be validated at startup. Keep an eye for errors in your logs The types are important. (String, Color, IconData).
You can add as many /routes as you want to the config.
if you don't get an exception, your config should be safe
- Inheritance
-
- Object
- DartBoardFeature
- BottomNavTemplateFeature
Constructors
Properties
-
appDecorations
→ List<
DartBoardDecoration> -
The app decorations (global)
no setteroverride
-
config
→ List<
Map< String, dynamic> > -
final
- decorateRoutes → bool
-
final
-
dependencies
→ List<
DartBoardFeature> -
no setterinherited
- enabled → bool
-
This can be used to allow an extension to exclude itself.
E.g. Based on platform
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- implementationName → String
-
final
- isIntegrationFeature → bool
-
This is a hint if a feature is "Integration" or not.
The only difference here is that "Integration" features
are not displayed in the dependency graph
(to many edges, looks ugly)
no setterinherited
-
methodHandlers
→ Map<
String, MethodCallHandler> -
This map of method handlers can be used to define callbacks
no setterinherited
- namespace → String
-
Expose namespace/implementation name so we can AB test layouts easily
final
-
pageDecorationAllowList
→ List<
String> -
Allow list for page decorations in the format
"/route:page_decoration_name"
no setterinherited
-
pageDecorationDenyList
→ List<
String> -
Deny list for page decorations in the format
"/route:page_decoration_name"
no setterinherited
-
pageDecorations
→ List<
DartBoardDecoration> -
The page decorations (page level)
no setterinherited
- route → String
-
final
-
routes
→ List<
RouteDefinition> -
The route definitions
no setteroverride
- 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
-
validateConfig(
) → void - This is a runtime safety check to ensure that the config looks valid Additional checks can be added here (e.g. regex, length checks, etc)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited