1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-15 18:10:53 +01:00
lemmur-app-android/lib/hooks/memo_future.dart
2020-09-15 15:20:34 +02:00

7 lines
272 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
AsyncSnapshot<T> useMemoFuture<T>(Future<T> Function() valueBuilder,
[List<Object> keys = const <dynamic>[]]) =>
useFuture(useMemoized<Future<T>>(valueBuilder, keys));