JsonAssetReader class

A class to read JSON data from an asset file.

This class provides functionality to read and parse JSON data from a specified asset file path. It uses the rootBundle to load the file and dart:convert to decode the JSON data.

Constructors

JsonAssetReader({required String path})
Creates an instance of JsonAssetReader with the given asset file path.

Properties

data → Future<Map<String, dynamic>>
Asynchronously gets the parsed JSON data.
no setter
fileExists ↔ bool
Indicates whether the file exists.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited