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