createInstance method

COMMAND createInstance(
  1. Type key, [
  2. Object? request
])
inherited

Finds and runs the builder to create an instance.

Throws BuilderNotFoundInFactoryException, when the builder is not found in the factory.

Implementation

INSTANCE createInstance(KEY key, [Object? request]) {
  final builder = getBuilder(key);
  return builder();
}