replace<P> static method
Implementation
static 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);
Get.put(child, tag: tag, permanent: permanent);
}