path static method
Future<File?>
path(
- String path, {
- required Factory riveFactory,
- 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,
);
}