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 DoughnutSegment<T, D> doughnutSegment =
segment as DoughnutSegment<T, D>;
if (explode && segment.currentSegmentIndex == explodeIndex) {
doughnutSegment._isExploded = true;
} else {
doughnutSegment._isExploded = false;
}
}
transformValues();
markNeedsPaint();
} else {
_updateExploding();
}
}
}