SelectionController<T> constructor

SelectionController<T>({
  1. required List<T> options,
  2. int initialIndex = 0,
})

Creates a new SelectionController.

Implementation

SelectionController({required this.options, int initialIndex = 0})
  : _selectedIndex = initialIndex,
    _focusedIndex = initialIndex;