NesSelectionList constructor

const NesSelectionList({
  1. Key? key,
  2. required List<Widget> children,
  3. required void onSelect(
    1. int
    ),
  4. Widget markerBuilder(
    1. BuildContext,
    2. Size
    )?,
  5. int? initialIndex,
  6. Axis axis = Axis.vertical,
  7. bool canAutoFocus = true,
  8. FocusNode? focusNode,
  9. VoidCallback? onCancelSelection,
  10. Duration? tickerDuration,
  11. bool canCancelSelection = true,
})

Implementation

const NesSelectionList({
  super.key,
  required this.children,
  required this.onSelect,
  this.markerBuilder,
  this.initialIndex,
  this.axis = Axis.vertical,
  this.canAutoFocus = true,
  this.focusNode,
  this.onCancelSelection,
  this.tickerDuration,
  this.canCancelSelection = true,
}) : assert(
        initialIndex == null || initialIndex < children.length,
        'initialIndex must be less than children.length',
      );