getAppVersion method

Future<String> getAppVersion()

Implementation

Future<String> getAppVersion() async{
  try {
    var pkData = await PackageInfo.fromPlatform();
    return pkData.version;
  } catch (e) {
    DataDomeLogger.error("Error to retrieve application version '$e'");
    return "";
  }
}