explodeAll property

bool get explodeAll

Implementation

bool get explodeAll => _explodeAll;
set explodeAll (bool value)

Implementation

set explodeAll(bool value) {
  if (_explodeAll != value) {
    _explodeAll = value;
    if (!_explodeAll) {
      for (final ChartSegment segment in segments) {
        final PieSegment<T, D> pieSegment = segment as PieSegment<T, D>;
        if (explode && segment.currentSegmentIndex == explodeIndex) {
          pieSegment._isExploded = true;
        } else {
          pieSegment._isExploded = false;
        }
      }

      transformValues();
      markNeedsPaint();
    } else {
      _updateExploding();
    }
  }
}