inSeconds property

MutableCell<int> get inSeconds

The duration in units of seconds, see Duration.inSeconds

A MutableCell is returned which accesses this property of the value held in this cell. Setting the value of the returned cell updates the value of this by creating a new Duration as if by Duration(seconds: value).

Implementation

MutableCell<int> get inSeconds => _getProp('inSeconds', () => value.inSeconds, (value) {
  this.value = Duration(seconds: value);
});