Source
factory BitmapData.fromVideoElement(VideoElement videoElement, [num pixelRatio = 1.0]) { var renderTexture = new RenderTexture.fromVideoElement(videoElement); var renderTextureQuad = renderTexture.quad.withPixelRatio(pixelRatio); return new BitmapData.fromRenderTextureQuad(renderTextureQuad); }