previousOfIndex method

T previousOfIndex(
  1. int index
)

Implementation

T previousOfIndex(int index) {
  final nextIndex = max(0, index - 1);
  return this[nextIndex];
}