setData method

void setData(
  1. Iterable<CustomThemeData> data, {
  2. bool recursive = false,
})
inherited

Set list of instances.

List should not contain multiple instances with same type. Also list should not contain null.

If recursive is true than

Implementation

void setData(Iterable<T> data, {bool recursive = false}) {
  data.forEach(recursive ? _addRecursive : _addInstance);
}