durationMilliseconds property
int?
get
durationMilliseconds
Duration of a light transition or timed effects in ms.
Throws NegativeValueException if durationMilliseconds
is less than 0.
Implementation
int? get durationMilliseconds => _durationMilliseconds;
set
durationMilliseconds
(int? durationMilliseconds)
Implementation
set durationMilliseconds(int? durationMilliseconds) {
if (durationMilliseconds == null || durationMilliseconds >= 0) {
_durationMilliseconds = durationMilliseconds;
} else {
throw NegativeValueException.withValue(durationMilliseconds);
}
}