open static method

Future<UCachedByteSource> open({
  1. String? path,
  2. String? url,
  3. Uint8List? bytes,
  4. String? asset,
  5. Object? blob,
  6. Map<String, String>? headers,
  7. int cacheBytes = uDocSourceCacheBytes,
})

Implementation

static Future<UCachedByteSource> open({String? path, String? url, Uint8List? bytes, String? asset, Object? blob, Map<String, String>? headers, int cacheBytes = uDocSourceCacheBytes}) async {
  final UDocByteSource source = await _resolve(path: path, url: url, bytes: bytes, asset: asset, blob: blob, headers: headers);
  return UCachedByteSource(source, maxBytes: cacheBytes);
}