lazyReplace<P> static method
Lazily replaces the specified child widget with a new one.
Implementation
static Future<void> lazyReplace<P>(
InstanceBuilderCallback<P> builder, {
String? tag,
bool? fenix,
}) async {
final InstanceInfo info = Get.getInstanceInfo<P>(tag: tag);
final bool permanent = info.isPermanent ?? false;
await delete<P>(tag: tag, force: permanent);
Get.lazyPut(builder, tag: tag, fenix: fenix ?? permanent);
}