dumpState method

  1. @override
Object? dumpState(
  1. CellValueCoder coder
)
override

Dump the state of the cell to a value.

The value returned by this method must be a primitive value, encodable by StandardMessageCodec, which can later be passed to restoreState to restore the state of the cell to the state at the time of calling this method.

coder is the CellValueCoder object which should be used for encoding the cell's value.

Implementation

@override
Object? dumpState(CellValueCoder coder) {
  return coder.encode(value);
}