inHours property

MutableCell<int> get inHours

The duration in units of hours, see Duration.inHours

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(hours: value).

Implementation

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