cacheOrAsync function
void
cacheOrAsync()
Implementation
void cacheOrAsync() async {
// First it will check if the data exist in the storage retrieved data from there
// and if it does not exist there, then it retrieved them from async function
CacheManager<FaKeData> cacheManager = CacheManager<FaKeData>.cacheOrSync(
serializerFunc: (data) => Future.value(FaKeData.fromJson(data)),
key: 'your key',
asyncBloc: getFakeDataAsync);
FaKeData? faKeData = await cacheManager();
}