updateSixthIndex method Null safety

void updateSixthIndex(
  1. int index
)

Implementation

void updateSixthIndex(int index) {
  this.sixtyIndex = index;

  int minSecond = _minSecondOfCurrentMinute();
  currentTime = currentTime.isUtc
      ? DateTime.utc(
          currentTime.year,
          currentTime.month,
          currentTime.day,
          currentTime.hour,
          currentTime.minute,
          minSecond + index,
        )
      : DateTime(
          currentTime.year,
          currentTime.month,
          currentTime.day,
          currentTime.hour,
          currentTime.minute,
          minSecond + index,
        );
}