loadConfigAsset function

Future<String> loadConfigAsset()

Loads the configuration file from the Flutter assets.

Returns a Future<String> containing the config file's content.

Implementation

Future<String> loadConfigAsset() async {
  return await rootBundle.loadString('assets/osmos_config.json');
}