Future loadStructuredData(String key, Future parser(String value))

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

Implementations may cache the result, so a particular key should only be used with one parser for the lifetime of the asset bundle.

Source

Future<dynamic> loadStructuredData(String key, Future<dynamic> parser(String value));