loadStructuredData<T> abstract method

Future<T> loadStructuredData<T>(
  1. String key,
  2. Future<T> parser(
    1. String value

Retrieve a string from the asset bundle, parse it with the given function, and return that 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.


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