getIniDefaults static method

Future<Map<String, String>> getIniDefaults(
  1. String assetPath
)

Implementation

static Future<Map<String,String>> getIniDefaults(String assetPath) {
  return rootBundle.loadString(assetPath)
      .then((value) => Config.fromString(value), onError: (argh) => Config.fromString(""))
      .then((config) => config.defaults());
}