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