getAppName function

Future<String> getAppName()

Implementation

Future<String> getAppName() async {
  String path = Directory.current.path;
  YamlMap yamlMap =
      loadYaml(await CreatorUtil.readFileContent('$path/pubspec.yaml'));

  return yamlMap['name'];
}