isCompleted property

  1. @RecordExtensionElement(type: 'ValueCell<bool>', implementation: '''return awaited.apply((_) => true, key: _IsCompleteCellKey(this)) .loadingValue(false.cell) .onError(true.cell);''', documentation: '''A cell that is true when the [Future]s in the cells in this have completed, false otherwise. **NOTE**: The returned cell must have at least one observer in order to function.''')
ValueCell<bool> get isCompleted

A cell that is true when the Future in this has completed, false otherwise.

NOTE: The returned cell must have at least one observer in order to function.

Implementation

@RecordExtensionElement(
  type: 'ValueCell<bool>',
  implementation: '''return awaited.apply((_) => true, key: _IsCompleteCellKey(this))
    .loadingValue(false.cell)
    .onError(true.cell);''',

documentation: '''A cell that is true when the [Future]s in the cells in this have completed, false otherwise.

**NOTE**: The returned cell must have at least one observer in order
to function.'''
)
ValueCell<bool> get isCompleted => awaited
    .apply((_) => true, key: _IsCompleteCellKey(this))
    .loadingValue(false.cell)
    .onError(true.cell);