defaultHttpOptionsFromConfig function

Options defaultHttpOptionsFromConfig(
  1. RequestConfig? config
)

Implementation

Options defaultHttpOptionsFromConfig(RequestConfig? config) {
  config ??= RequestConfig();
  return defaultHttpOptions(
      ignoreLoading: config.ignoreLoading,
      ignoreErrors: config.ignoreErrors,
      resendRequest: config.resendRequest,
      followRedirect: config.followRedirect);
}