getInstance static method Null safety

Future<DartIOServer> getInstance()

Getter that uses the config.yaml data to return a DartIOServer instance

Implementation

static Future<DartIOServer> getInstance() async {
  return DartIOServer(
    config: await ConfigRepository().getConfig('config.yaml'),
  );
}