putLazy method

void putLazy(
  1. T factory(), {
  2. bool isPermanent = false,
})

Register a lazy factory

Implementation

void putLazy(T Function() factory, {bool isPermanent = false}) {
  _targetScope.putLazy<T>(factory, tag: tag, isPermanent: isPermanent);
}