replaceInstance<T> abstract method Null safety

void replaceInstance<T>(
  1. T instance
)

Replaces an instance record with a concrete instance.
This function should only be used for unit testing.
Any other use is discouraged.

Implementation

void replaceInstance<T>(T instance);