network method Null safety

Future<RiveFile> network(
  1. String url
)

Imports a Rive file from a url over http

Implementation

static Future<RiveFile> network(String url) async {
  final res = await http.get(Uri.parse(url));
  final bytes = ByteData.view(res.bodyBytes.buffer);
  return RiveFile.import(bytes);
}