getData<T> method
Implementation
Future<T>? getData<T>(
String key, Future<T> Function(String value) parser) async {
assert(Assets._assets != null, 'Assets.init() must be called first.');
Future<T>? data;
try {
data = Assets._assets!.loadStructuredData('$setPath(key)$key', parser);
} catch (ex) {
data = null;
}
return data!;
}