put static method

void put(
  1. Type key,
  2. Generator val
)

Implementation

static void put(Type key, Generator val) {
  _generators.putIfAbsent(key, () => val);
}