activeItem property

T? get activeItem

Currently active item.

Implementation

T? get activeItem =>
    _items.isEmpty || _activeIndex == -1 ? null : _items[_activeIndex];