newInstance static method

Future<ResourceManager> newInstance(
  1. SystemManager systemManager,
  2. Config config
)

Implementation

static Future<ResourceManager> newInstance(SystemManager systemManager, Config config) async {
  return ResourceManager(
      systemManager,
      await ApplicationStorage.newInstance(),
      await DeviceStorage.newInstance(config),
      await SessionStorage.newInstance(config),
      await VolatileStorage.newInstance()
  );
}