cache<T> static method

Future<T> cache<T>(
  1. String name, {
  2. bool? cached,
  3. Iterable<Object?> keyProps = const [],
  4. required Future<T> callback(),
})

Implementation

static Future<T> cache<T>(
  String name, {
  bool? cached,
  Iterable<Object?> keyProps = const [],
  required Future<T> Function() callback,
}) {
  return i.put(name, cached: cached, keyProps: keyProps, callback: callback);
}