PlatformTracingController constructor

PlatformTracingController(
  1. PlatformTracingControllerCreationParams params
)

Creates a new PlatformTracingController

Implementation

factory PlatformTracingController(
  PlatformTracingControllerCreationParams params,
) {
  assert(
    InAppWebViewPlatform.instance != null,
    'A platform implementation for `flutter_inappwebview_forge` has not been set. Please '
    'ensure that an implementation of `InAppWebViewPlatform` has been set to '
    '`WebViewPlatform.instance` before use. For unit testing, '
    '`WebViewPlatform.instance` can be set with your own test implementation.',
  );
  final PlatformTracingController tracingController = InAppWebViewPlatform
      .instance!
      .createPlatformTracingController(params);
  PlatformInterface.verify(tracingController, _token);
  return tracingController;
}