refresh method
void
refresh()
Refresh the future - re-executes if factory is available, otherwise restarts current future
Implementation
void refresh() {
if (_futureFactory != null) {
_executeFuture();
} else if (_currentFuture != null) {
value = const AsyncSnapshot.waiting();
_watchFuture(_currentFuture!);
} else {
ZenLogger.logError('RxFuture: No future or factory available to refresh');
}
}