setupDataSource method

void setupDataSource(
  1. int index
)

Setup data source with index based on _betterPlayerDataSourceList provided in constructor. Index must

Implementation

void setupDataSource(int index) {
  assert(
      index >= 0 && index < _betterPlayerDataSourceList.length,
      "Index must be greater than 0 and less than size of data source "
      "list - 1");
  if (index <= _dataSourceLength) {
    _currentDataSourceIndex = index;
    _betterPlayerController!
        .setupDataSource(_betterPlayerDataSourceList[index]);
  }
}