create static method

Future<MwmStorage> create()

Create and initialize the storage service.

Implementation

static Future<MwmStorage> create() async {
  final prefs = await SharedPreferences.getInstance();
  final storage = MwmStorage._(prefs);
  await storage._load();
  return storage;
}