tRexRunnerHtml property

Future<String> get tRexRunnerHtml

Gets the html (with javascript) of the Chromium's t-rex runner game. Used in combination with tRexRunnerCss.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2
  • Linux WPE WebKit

Use the PlatformInAppWebViewController.isPropertySupported method to check if this property is supported at runtime.

Implementation

static Future<String> get tRexRunnerHtml =>
    PlatformInAppWebViewController.static().tRexRunnerHtml;