AndroidServiceWorkerController constructor

AndroidServiceWorkerController(
  1. PlatformServiceWorkerControllerCreationParams params
)

Implementation

AndroidServiceWorkerController(
    PlatformServiceWorkerControllerCreationParams params)
    : super.implementation(
        params is AndroidServiceWorkerControllerCreationParams
            ? params
            : AndroidServiceWorkerControllerCreationParams
                .fromPlatformServiceWorkerControllerCreationParams(params),
      ) {
  channel =
      const MethodChannel('tech.gmo/flutter_webview_serviceworkercontroller');
  handler = handleMethod;
  initMethodCallHandler();
}