String

onEntrypointLoaded

The function called when the engine is ready to be initialized. Receives an engineInitializer object as its only parameter.

Function

serviceWorker

The configuration for the flutter_service_worker.js loader. (If not set, the service worker won’t be used.)

Object

The serviceWorker JavaScript object accepts the following properties:

serviceWorkerUrl

The URL of the Service Worker JS file. The serviceWorkerVersion is appended to the URL. Defaults to "flutter_service_worker.js?v="

String

serviceWorkerVersion

Pass the serviceWorkerVersion variable set by the build process in your index.html file.

String

timeoutMillis

The timeout value for the service worker load. Defaults to 4000.

Number

Initializing the engine