lazyReplace<P> static method

void lazyReplace<P>(
  1. BuilderPattern<P> builder, {
  2. String? tag,
  3. bool? fenix,
})

Implementation

static void lazyReplace<P>(BuilderPattern<P> builder,
    {String? tag, bool? fenix}) {
  final info = June.getInstanceDetails<P>(tag: tag);
  final permanent = (info.isPermanent ?? false);
  delete<P>(tag: tag, force: permanent);
  June.lazyPut(builder, tag: tag, fenix: fenix ?? permanent);
}