replace<P> method
Implementation
void replace<P>(P child, {String? tag}) {
final info = Get.getInstanceInfo<P>(tag: tag);
final permanent = (info.isPermanent ?? false);
delete<P>(tag: tag, force: permanent);
put(child, tag: tag, permanent: permanent);
}