url static method

Future<File?> url(
  1. String url, {
  2. required Factory riveFactory,
  3. Map<String, String>? headers,
  4. AssetLoaderCallback? assetLoader,
})

Implementation

static Future<File?> url(
  String url, {
  required Factory riveFactory,
  Map<String, String>? headers,
  AssetLoaderCallback? assetLoader,
}) async {
  final res = await http.get(Uri.parse(url), headers: headers);

  return decode(
    res.bodyBytes,
    riveFactory: riveFactory,
    assetLoader: assetLoader,
  );
}