setWebSinkId method

Future<void> setWebSinkId(
  1. String webSinkId
)

Sets a specific device output id on Web.

Implementation

Future<void> setWebSinkId(String webSinkId) async {
  if (_disposed) return;
  if (!kIsWeb && !_isUnitTest()) return;

  await (await _platform)
      .setWebSinkId(SetWebSinkIdRequest(sinkId: webSinkId));
  _webSinkId = webSinkId;
}