levitLazyPutAsync method

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

Registers this Future as a lazy asynchronous dependency.

Use tag to differentiate instances. Set isFactory to true to re-await the future on every Ls.findAsync.

Implementation

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