RxFuture<T>.fromFactory constructor

RxFuture<T>.fromFactory(
  1. Future<T> futureFactory()
)

Create RxFuture with a factory function that can be refreshed

Implementation

RxFuture.fromFactory(Future<T> Function() futureFactory)
    : _futureFactory = futureFactory,
      super(const AsyncSnapshot.waiting()) {
  _executeFuture();
}