MFResourceRequest constructor

MFResourceRequest(
  1. String url,
  2. String method,
  3. {int timeout,
  4. String scope,
  5. String backendServiceName}
)

Implementation

MFResourceRequest(String url, String method,
    {int timeout, String scope, String backendServiceName}) {
  if (timeout == null) {
    timeout = 3000;
  }
  if (scope == null) {
    scope = "";
  }
  if (backendServiceName == null) {
    backendServiceName = "";
  }
  _channel.invokeMethod(WLRESOURCEREQUEST_INIT, <String, dynamic>{
    UUID: _uuid,
    URL: url,
    METHOD: method,
    TIMEOUT: timeout,
    SCOPE: scope,
    BACKEND_SERVICE: backendServiceName
  });
}