loadBytes method

  1. @override
Future<ByteData> loadBytes(
  1. BuildContext? context
)
override

Load the byte data for a vector graphic binary asset.

Implementation

@override
Future<ByteData> loadBytes(BuildContext? context) {
  return _resolveBundle(context).load(
    packageName == null ? assetName : 'packages/$packageName/$assetName',
  );
}