putAsync<S> method

Future<S> putAsync<S>(
  1. AsyncInstanceBuilderCallback<S> builder,
  2. {String tag,
  3. bool permanent = false}
)

async version of Get.put(). Awaits for the resolution of the Future from builder() parameter and stores the Instance returned.

Implementation

Future<S> putAsync<S>(AsyncInstanceBuilderCallback<S> builder,
        {String tag, bool permanent = false}) async =>
    GetInstance().putAsync<S>(builder, tag: tag, permanent: permanent);