T getRenderProgram<T extends RenderProgram>(String name, T ifAbsent())

Source

T getRenderProgram<T extends RenderProgram>(String name, T ifAbsent()) {
  return _renderPrograms.putIfAbsent(name, ifAbsent) as T;
}