setPanelPosition method

void setPanelPosition(
  1. double value
)

Set panel position WITHOUT animation.

This doesn't return a Future, as the effect is immediate.

Given value is clamped between PanelSize.closedHeight and PanelSize.expandedHeight.

Implementation

void setPanelPosition(double value) => controlling
    ? _setPanelPosition(panel!,
        duration: Duration(milliseconds: 0), to: value)
    : _printError();