createReadbufferSource function

ReadbufferSource createReadbufferSource(
  1. String pathOrUrl, [
  2. dynamic file
])

Factory for creating a ReadbufferSource on the WASM web platform.

Implementation

ReadbufferSource createReadbufferSource(String pathOrUrl, [dynamic file]) {
  // The `file` parameter is ignored on WASM as it's not supported.
  return ReadbufferFileWebWasm.fromUrl(pathOrUrl);
}