PackageInfo constructor

PackageInfo({
  1. required String appName,
  2. required String packageName,
  3. required String version,
  4. required String buildNumber,
  5. String buildSignature = '',
  6. String? installerStore,
})

Constructs an instance with the given values for testing. PackageInfo instances constructed this way won't actually reflect any real information from the platform, just whatever was passed in at construction time.

See fromPlatform for the right API to get a PackageInfo that's actually populated with real data.

Implementation

PackageInfo({
  required this.appName,
  required this.packageName,
  required this.version,
  required this.buildNumber,
  this.buildSignature = '',
  this.installerStore,
});