add method

void add(
  1. IFactory? factory
)

Adds a factory into the list of embedded factories.

  • factory a factory to be added.

Implementation

void add(IFactory? factory) {
  if (factory == null) {
    throw Exception('Factory cannot be null');
  }

  _factories.add(factory);
}