levitLazyPutAsync method

void levitLazyPutAsync({
  1. String? tag,
  2. bool permanent = false,
  3. bool isFactory = false,
})

Registers this Future as a lazy asynchronous dependency.

Parameters:

  • tag: Optional unique identifier for the instance.
  • permanent: If true, the registration survives a non-forced reset.
  • isFactory: If true, the future is re-awaited for every findAsync call.

Implementation

void levitLazyPutAsync(
        {String? tag, bool permanent = false, bool isFactory = false}) =>
    Ls.lazyPutAsync(() => this,
        tag: tag, permanent: permanent, isFactory: isFactory);