singleWithParams<T> function

Bind singleWithParams<T>(
  1. _FactoryFuncParams<T> factory, {
  2. String? named,
  3. bool replaceIfExists = false,
})

Implementation

Bind singleWithParams<T>(
  _FactoryFuncParams<T> factory, {
  String? named,
  bool replaceIfExists = false,
}) {
  return Bind<T>._internal(
    factoryFuncParams: factory,
    isSingleton: true,
    name: named,
    type: T,
    replaceIfExists: replaceIfExists,
  );
}