alwaysVisibleSeries property

List<String>? get alwaysVisibleSeries

Gets a list of series IDs that should always be visible.

Implementation

List<String>? get alwaysVisibleSeries => _alwaysVisibleSeries;
set alwaysVisibleSeries (List<String>? alwaysVisibleSeries)

Sets a list of series IDs that should always be visible and therefore cannot be hidden.

This also shows any series that should always be visible in case it was previously hidden.

Implementation

set alwaysVisibleSeries(List<String>? alwaysVisibleSeries) {
  _alwaysVisibleSeries = alwaysVisibleSeries;
  _alwaysVisibleSeries?.forEach(showSeries);
}