skipDoubleRegistration property
By default it's throws error when allowReassignment= false. and trying to register same type If you really need, you can disable the Asserts / Errror by settingskipDoubleRegistration= true
Implementation
@visibleForTesting
bool skipDoubleRegistration = false;