loadStructuredBinaryData<T> method

  1. @override
Future<T> loadStructuredBinaryData<T>(
  1. String key,
  2. FutureOr<T> parser(
    1. ByteData data

Retrieve ByteData from the asset bundle, parse it with the given function, and return the function's result.

The result is not cached. The parser is run each time the resource is fetched.


Future<T> loadStructuredBinaryData<T>(String key, FutureOr<T> Function(ByteData data) parser) async {
  return parser(await load(key));