decode static method
Future<File?>
decode(
- Uint8List bytes, {
- required Factory riveFactory,
- AssetLoaderCallback? assetLoader,
Implementation
static Future<File?> decode(
Uint8List bytes, {
required Factory riveFactory,
AssetLoaderCallback? assetLoader,
}) async {
final initialized = await RiveNative.init();
assert(initialized,
'RiveNative could not be initialized, be sure to call `await RiveNative.init()` before decoding a file.');
return decodeRiveFile(bytes, riveFactory, assetLoader: assetLoader);
}