previousIndex property Null safety

int? previousIndex

The index of the previous item in play order, or null if there is no previous item.

Implementation

int? get previousIndex => _getRelativeIndex(-1);