RequestController<T> constructor
RequestController<T> (
- Future<
T> service(), - RequestOptions<
T> options
Implementation
RequestController(this.service, this.options)
: data = ref(options.initialData),
error = ref(null),
loading = ref(false) {
if (!options.manual) {
run();
}
if (options.pollingInterval != null) {
_startPolling();
}
}