asset method Null safety
- String bundleKey
Imports a Rive file from an asset bundle
Implementation
static Future<RiveFile> asset(String bundleKey) async {
final bytes = await rootBundle.load(bundleKey);
return RiveFile.import(bytes);
}
Imports a Rive file from an asset bundle
static Future<RiveFile> asset(String bundleKey) async {
final bytes = await rootBundle.load(bundleKey);
return RiveFile.import(bytes);
}