setInstantiator<O> method

void setInstantiator<O>(
  1. String key,
  2. O instantiator()
)

Sets the instantiator for key

Implementation

void setInstantiator<O>(String key, O Function() instantiator) =>
    _cacheInstantiators[key] = instantiator;