network method Null safety
- 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);
}