Is there a way that we could save a map object into shared preferences so that we can fetch the data from shared preferences rather than listening to the database all the ti
If you convert it to a string, you can store it
import 'dart:convert'; ... var s = json.encode(myMap); // or var s = jsonEncode(myMap);
json.decode(...)/jsonDecode(...) makes a map from a string when you load it.
json.decode(...)
jsonDecode(...)