factory<T> method

Factory factory<T>(
  1. T createInstance()
)

Implementation

Factory factory<T>(final T Function() createInstance) {
  return Factory<T>(createInstance);
}