NavigationControlData constructor

NavigationControlData({
  1. required NavigationContainerType containerType,
  2. required NavigationLabelType parentLabelType,
  3. required NavigationLabelPosition parentLabelPosition,
  4. required NavigationLabelSize parentLabelSize,
  5. required EdgeInsets parentPadding,
  6. required Axis direction,
  7. Key? selectedKey,
  8. ValueChanged<Key?>? onSelected,
  9. required bool expanded,
  10. required int childCount,
  11. required double spacing,
  12. required bool keepCrossAxisSize,
  13. required bool keepMainAxisSize,
})

Creates navigation control data.

Parameters:

  • containerType (NavigationContainerType, required): Container type
  • parentLabelType (NavigationLabelType, required): Label display type
  • parentLabelPosition (NavigationLabelPosition, required): Label position
  • parentLabelSize (NavigationLabelSize, required): Label size variant
  • parentPadding (EdgeInsets, required): Container padding
  • direction (Axis, required): Layout direction
  • selectedKey (Key?): Selected item key
  • onSelected (ValueChanged<Key>, required): Selection callback
  • expanded (bool, required): Whether expanded
  • childCount (int, required): Number of children
  • spacing (double, required): Item spacing
  • keepCrossAxisSize (bool, required): Maintain cross-axis size
  • keepMainAxisSize (bool, required): Maintain main-axis size

Implementation

NavigationControlData({
  required this.containerType,
  required this.parentLabelType,
  required this.parentLabelPosition,
  required this.parentLabelSize,
  required this.parentPadding,
  required this.direction,
  this.selectedKey,
  this.onSelected,
  required this.expanded,
  required this.childCount,
  required this.spacing,
  required this.keepCrossAxisSize,
  required this.keepMainAxisSize,
});