endIndex property

int get endIndex

get last index in _tocList

Implementation

int get endIndex {
  if (_tocList == null || _tocList!.isEmpty) return 0;
  final keys = _tocList!.keys.toList();
  final lastKey = keys.last;
  final index = _tocList![lastKey]!.index;
  return index;
}