asset method Null safety

Future<RiveFile> asset(
  1. 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);
}