getAll method
Returns a map with the following keys: appName, packageName, version, buildNumber
Implementation
@override
Future<PackageInfoData> getAll() {
final info = _FileVersionInfo(Platform.resolvedExecutable);
final versions = info.productVersion!.split('+');
final data = PackageInfoData(
appName: info.productName ?? '',
packageName: info.internalName ?? '',
version: versions.getOrNull(0) ?? '',
buildNumber: versions.getOrNull(1) ?? '',
buildSignature: '',
);
info.dispose();
return Future.value(data);
}