path static method

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

Implementation

static Future<File?> path(
  String path, {
  required Factory riveFactory,
  AssetLoaderCallback? assetLoader,
}) async {
  final bytes = await localFileBytes(path);
  if (bytes == null) {
    return null;
  }
  return decode(
    bytes,
    riveFactory: riveFactory,
    assetLoader: assetLoader,
  );
}