DataHandler<T> constructor

DataHandler<T>(
  1. String domain,
  2. String name, {
  3. bool register = true,
  4. DataTransformerTo<T>? transformerTo,
  5. DataTransformerToList<T>? transformerToList,
  6. DataTransformerFrom<T>? transformerFrom,
  7. DataTransformerFromList<T>? transformerFromList,
})

Implementation

DataHandler(this.domain, this.name,
    {bool register = true,
    DataTransformerTo<T>? transformerTo,
    DataTransformerToList<T>? transformerToList,
    DataTransformerFrom<T>? transformerFrom,
    DataTransformerFromList<T>? transformerFromList})
    : id = normalizeID(domain, name)!,
      transformerTo = transformerTo,
      transformerToList = transformerToList,
      transformerFrom = transformerFrom,
      transformerFromList = transformerFromList {
  _check(this);

  if (register) {
    DataHandler.register(this);
  }
}