loadSettings method

Future<void> loadSettings()

Loads the settings from the SharedPreferences.

It retrieves the value of 'app_origin' from the SharedPreferences and assigns it to the appOrigin variable. If the value is not present, it assigns a default value of 'wss://caesar-transfer-iu.shuttleapp.rs'.

Implementation

Future<void> loadSettings() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  appOrigin = prefs.getString('app_origin') ??
      'wss://caesar-transfer-iu.shuttleapp.rs';
}