removeRegistrationIfExists<T extends Object> method
Implementation
void removeRegistrationIfExists<T extends Object>({String? instanceName}) {
if (locator.isRegistered<T>(instanceName: instanceName)) {
locator.unregister<T>(instanceName: instanceName);
}
}