createUri function

Uri createUri(
  1. PayloadModel payload,
  2. WebViewState webViewState
)

Generates A Uri from a raw HtML string

Implementation

Uri createUri(PayloadModel payload, WebViewState webViewState) {
  return Uri.dataFromString(initRequest(payload, "==", '', webViewState),
      encoding: Encoding.getByName('utf-8'), mimeType: 'text/html');
}