putAsync<S> method
Future<S>
putAsync<S>(
- AsyncInstanceBuilderCallback<
S> builder, { - String? tag,
- 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 {
return put<S>(await builder(), tag: tag, permanent: permanent);
}