clearPositions method

void clearPositions()

Clears all open positions from the chart.

Implementation

void clearPositions() {
  if (_positions.isNotEmpty) {
    _positions.clear();
    notifyListeners();
  }
}