Mapped class

Constructors

Mapped()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteFile({required String cachedFileName}) bool
deletes the created file
loadFile({required String cachedFileName}) Map<String, dynamic>?
loads json cached file with a name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveFile({required Map<String, dynamic> file, required String cachedFileName}) bool
save json file in cache(temp directory) with with given name using instance member
setTempDirectory() Future
now that all basic functionality is done ..but we still need some optimization and we can see that our static functions are async and due to that reason it would be hard to load data quickly while calling them Future method for App document local directory create object and set temporary directory once and than u can read/write or delete file without using Future
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

tempDirectory ↔ dynamic
getter/setter pair

Static Methods

deleteFileDirectly({required String cachedFileName}) Future<String>
deletes the created file
getInstance() Future<Mapped>
Once instantiated, Than this return object can be used to quickly store and load data
loadFileDirectly({required String cachedFileName}) Future<Map<String, dynamic>?>
loads json cached file with a name
saveFileDirectly({required Map<String, dynamic> file, required String cachedFileName}) Future<String>
Loads json file from cache(temp directory) with with given name