data property

Future<Map<String, dynamic>> get data

Asynchronously gets the parsed JSON data.

This getter reads the file from the asset and decodes the JSON data. Returns a Map containing the JSON data.

Implementation

Future<Map<String, dynamic>> get data async {
  _data = await _readFileFromAsset(_path) as Map<String, dynamic>;
  return _data!;
}