RequestState constructor

RequestState(
  1. NdkRequest request
)

Creates a new RequestState instance

Implementation

RequestState(this.request) : unresolvedFilters = request.filters {
  // if we have a timeout set, we start it
  if (request.timeoutDuration != null) {
    timeoutDuration = request.timeoutDuration;
    _timeout = Timer(timeoutDuration!, () {
      onTimeout?.call(this);
      // call close on all controllers
      close();
    });
  }
}