effectiveIndices property

List<int> get effectiveIndices

Returns shuffleIndices if shuffleModeEnabled is true, otherwise returns the unshuffled indices.

Implementation

List<int> get effectiveIndices {
  return shuffleModeEnabled
      ? shuffleIndices
      : List.generate(sequence.length, (i) => i);
}