createWebObject<T extends Object> method

  1. @override
T createWebObject<T extends Object>(
  1. String name,
  2. List<Object?> arguments
)
override

Constructs a backend instance of a neutral constructible Web API (e.g. BroadcastChannel) from its IDL constructor arguments.

The browser backend constructs the underlying JS object and wraps it in the matching neutral Browser* proxy; the SSR backend throws UnsupportedWebApiError since no constructible Web API exists on the server.

Implementation

@override
T createWebObject<T extends Object>(String name, List<Object?> arguments) =>
    throw UnsupportedWebApiError('$name constructor');