MFResourceRequest constructor

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

Implementation

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