useFutureState function Null safety

FutureHookResult useFutureState(
  1. Future future(
    1. dynamic params
    ),
  2. {FutureHookOptions? options}
)

useFutureState function

Implementation

FutureHookResult useFutureState(
  Future Function(dynamic params) future, {
  FutureHookOptions? options,
}) {
  return use(
    _FutureHook(
      future,
      options: options ?? FutureHookOptions(),
    ),
  );
}