jeudi 28 novembre 2019

What is the best way to storage data in flutter

For example, I have a class with a static field that can store my data, but I'm not sure if this is correct for OOP principles. What is the best way to do this?

class Data {
  static String token;
  static DoctorProfile doctor;
  static UserProfile userProfile;
}

Aucun commentaire:

Enregistrer un commentaire