createServiceProvider method

  1. @override
ServiceProvider createServiceProvider(
  1. Object containerBuilder
)
override

Implementation

@override
ServiceProvider createServiceProvider(Object containerBuilder) {
  if (_serviceProviderFactory == null) {
    throw Exception(
      'CreateBuilder must be called before CreateServiceProvider',
    );
  }

  return _serviceProviderFactory!.createServiceProvider(
    containerBuilder: containerBuilder as TContainerBuilder,
  );
}