withIds method

List<DataSource> withIds(
  1. List<String> ids
)

Adds unique identifier to each DataSource in the list.

Example:

final dataSources = [
  DocsDataSource(),
  BlogsDataSource()
].withIds(['docs_source', 'blogs_source']);
print(dataSources); // Outputs: [{id: docs_source}, {id: blogs_source}]

Implementation

List<DataSource> withIds(List<String> ids) {
  return [];
}