setMockInitialValues static method

  1. @visibleForTesting
void setMockInitialValues({
  1. required String appName,
  2. required String packageName,
  3. required String version,
  4. required String buildNumber,
  5. required String buildSignature,
})

Initializes the application metadata with mock values for testing.

If the singleton instance has been initialized already, it is overwritten.

Implementation

@visibleForTesting
static void setMockInitialValues({
  required String appName,
  required String packageName,
  required String version,
  required String buildNumber,
  required String buildSignature,
}) {
  _fromPlatform = PackageInfo(
    appName: appName,
    packageName: packageName,
    version: version,
    buildNumber: buildNumber,
    buildSignature: buildSignature,
  );
}