duration property
Change the _duration
field value.
durationChanged will be invoked only if the field's value has changed.
Implementation
set duration(int value) {
if (_duration == value) {
return;
}
int from = _duration;
_duration = value;
if (hasValidated) {
durationChanged(from, value);
}
}