EColorShift constructor
Implementation
EColorShift(this._colors, this._shiftSpeed) {
//assign currentColor
if (_colors.isNotEmpty) {
_currentColor = this._colors[0];
}
//check if shift speed is in bounds 0 and 1
if (_shiftSpeed < 0 || _shiftSpeed > 1) {
throw ("_shiftSpeed has a value of $_shiftSpeed, while a value within 0 and 1 was expected. Class: EColorShift");
}
}