Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AsyncMemoizer in Dart/Flutter

How do you memoize your futures? I am using a FutureBuilder that gets items data by some params.

I found here a suggestion to use AsyncMemoizer, however it looks like it's missing from the dart:async package.

Are there alternatives?

like image 721
valk Avatar asked Dec 18 '22 13:12

valk


1 Answers

import 'package:async/async.dart';
like image 177
Kushagra Srivastava Avatar answered Dec 20 '22 03:12

Kushagra Srivastava