createInstance<T> static method

T createInstance<T>(
  1. Type type
)

Implementation

static T createInstance<T>(Type type) {
  return _factory[type]?.instanceCreator.call() as T;
}