state property

  1. @override
  2. @protected
CellState<StatefulCell> get state
override

The current state of the cell, or null if the cell is inactive.

Implementation

@override
@protected
CellState get state {
  if (key == null) {
    return _ensureState();
  }

  final state = super.state;

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

  return state;
}