provideDummyBuilder<T> function

void provideDummyBuilder<T>(
  1. DummyBuilder<T> dummyBuilder
)

Provide a builder for that could create a dummy value of type T. This could be useful for nice mocks, such that information about the specific invocation that caused the creation of a dummy value could be preserved.

Implementation

void provideDummyBuilder<T>(DummyBuilder<T> dummyBuilder) =>
    _dummyBuilders[T] = dummyBuilder;