decode static method

Future<File?> decode(
  1. Uint8List bytes, {
  2. required Factory riveFactory,
  3. 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);
}