requestSimpleWebView method

Future<Result<WebViewResultBase>> requestSimpleWebView({
  1. required bool fromSwitchWebview,
  2. required bool fromSideMenu,
  3. required bool compact,
  4. required bool fullscreen,
  5. required InputUserBase bot,
  6. String? url,
  7. String? startParam,
  8. DataJSONBase? themeParams,
  9. required String platform,
})

Request Simple Web View.

ID: 413a3e73.

Implementation

Future<Result<WebViewResultBase>> requestSimpleWebView({
  required bool fromSwitchWebview,
  required bool fromSideMenu,
  required bool compact,
  required bool fullscreen,
  required InputUserBase bot,
  String? url,
  String? startParam,
  DataJSONBase? themeParams,
  required String platform,
}) async {
  // Preparing the request.
  final request = MessagesRequestSimpleWebView(
    fromSwitchWebview: fromSwitchWebview,
    fromSideMenu: fromSideMenu,
    compact: compact,
    fullscreen: fullscreen,
    bot: bot,
    url: url,
    startParam: startParam,
    themeParams: themeParams,
    platform: platform,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<WebViewResultBase>();
}