value property

  1. @override
T get value
override

Retrieve the previous value of cell.

NOTE: If cell has not changed its value since the initialization of this cell, an UninitializedCellError exception is thrown.

Implementation

@override
T get value {
  final state = this.state;

  if (state == null) {
    throw UninitializedCellError();
  }

  return state.value;
}