Navigation constructor
Navigation({
- List<
NavigationItem> ? primaryActions, - List<
NavigationItem> ? secondaryActions, - required int drawerSelectedIndex,
- required int bottomBarSelectedIndex,
Implementation
factory Navigation({
@JsonKey(name: 'primary') List<NavigationItem>? primaryActions,
@JsonKey(name: 'secondary') List<NavigationItem>? secondaryActions,
@JsonKey(defaultValue: -1) required int drawerSelectedIndex,
@JsonKey(defaultValue: 0) required int bottomBarSelectedIndex,
}) = _Navigation;