getSteps method

  1. @override
TimeStepIteratorFactory getSteps(
  1. DateTimeExtents timeExtent
)

Generates an Iterable for iterating over the time steps bounded by the given timeExtents. The desired tickIncrement can be set on the returned TimeStepIteratorFactory.

Implementation

@override
TimeStepIteratorFactory getSteps(DateTimeExtents timeExtent) {
  // Keep the steps iterable unless time extent changes, so the same iterator
  // can be used and reset for different increments.
  if (_stepsIterable == null || _stepsIterable!.timeExtent != timeExtent) {
    _stepsIterable = _TimeStepIteratorFactoryImpl(timeExtent, this);
  }
  return _stepsIterable!;
}