state property

StateType get state

Gets the current state of the sheet on which is interpolation value relied on and at which it takes the starting point.

Returns the closest anchored state if the sheet is enabled, otherwise the initial state.

Implementation

StateType get state {
  if (!isEnabled && !_extent.isAnimatingOpen) {
    return _extent.stateMapper.state(_extent.initialState);
  }

  return _extent.stateMapper.state(_extent.anchoredState);
}