dataSource property

List<T>? get dataSource

Implementation

List<T>? get dataSource => _dataSource;
set dataSource (List<T>? value)

Implementation

set dataSource(List<T>? value) {
  if ((value == null || value.isEmpty) && !listEquals(_dataSource, value)) {
    _dataCount = 0;
    segments.clear();
    markNeedsUpdate();
  }

  if (_dataCount != value?.length || !listEquals(_dataSource, value)) {
    _dataSource = value;
    canUpdateOrCreateSegments = true;
    markNeedsUpdate();
    animationType = AnimationType.realtime;
  }
}