DataHandler<T> constructor
DataHandler<T> (
- String domain,
- String name, {
- bool register = true,
- DataTransformerTo<
T> ? transformerTo, - DataTransformerToList<
T> ? transformerToList, - DataTransformerFrom<
T> ? transformerFrom, - 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);
}
}