getAll method

  1. @override
Future<PackageInfoData> getAll({
  1. String? baseUrl,
})
override

Returns a map with the following keys: appName, packageName, version, buildNumber

Implementation

@override
Future<PackageInfoData> getAll({String? baseUrl}) async {
  final versionJson = await _getVersionJson();
  return PackageInfoData(
    appName: versionJson['app_name'] ?? '',
    version: versionJson['version'] ?? '',
    buildNumber: versionJson['build_number'] ?? '',
    packageName: versionJson['package_name'] ?? '',
    buildSignature: '',
  );
}