doTransformTo<T> function

T? doTransformTo<T>(
  1. Object? o,
  2. DataTransformerTo<T>? transformerTo
)

Implementation

T? doTransformTo<T>(Object? o, DataTransformerTo<T>? transformerTo) {
  if (transformerTo == null) {
    return o as T?;
  }
  return transformerTo(o);
}