content property
Reads the content of the whole object stored inside the persistence system.
Returns null if it cannot read the object.
Implementation
@override
Future<T?> get content async {
await setFileFolder();
final String jsonString = await readFromFile(_fileFolder!, _fileName);
if (jsonString.isNotEmpty) {
return fromJson(json.decode(jsonString));
}
return null;
}