# main function

void main ()

## Implementation

    void main() async {

      final SharedPreferences prefs = await SharedPreferences.getInstance();
      String appName = prefs.getString("app");

      Widget app;

      switch(appName) {
        case AdvancedApp.NAME:
          app = new AdvancedApp();
          break;
        case HelloWorldApp.NAME:
          app = new HelloWorldApp();
          break;
        default:
          app = HomeApp();
          break;
      }
      runApp(app);
    }