maybeGetState<T extends CellState<StatefulCell>> static method

T? maybeGetState<T extends CellState<StatefulCell>>(
  1. dynamic key
)

Get the state for the cell identified by key if it exists.

If key is non-null and a state for the cell identified by key exists, it is returned, otherwise null is returned.

Implementation

static T? maybeGetState<T extends CellState>(key) => _cellStates[key] as T?;