RequestController<T> constructor

RequestController<T>(
  1. Future<T> service(),
  2. 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();
  }
}